Skip to content

Field names that start with on_ will get a bad query  #182

Open
@lukepolo

Description

my schema has a on_demand field, but in the code it thinkts it should be fragment

  if (f.startsWith('on_')) {
                    ctx.fragmentCounter++
To query some fields only on a certain type you can use graphql fragments
In genql you can express the fragments for union and interface types using the on_ prefixed fields in a query

any work arounds?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions