Skip to content

Fallback for the query operationName value #203

@slavik-pastushenko

Description

@slavik-pastushenko

Hello!
I am trying to migrate to this gateway and realised that I am not able to execute a query without specifying the operationName, meaning this query throws an exception:

query {
  random(id: "id") {
    id
    name
}

Looks like this is the place where we validate the operationName field: https://github.com/nautilus/gateway/blob/master/gateway.go#L69

Is it possible to set the fallback value instead of throwing an exception?
As an example: solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions