Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Name "fragment" #848

Closed
tobias-kuendig opened this issue Aug 29, 2019 · 1 comment
Closed

Unexpected Name "fragment" #848

tobias-kuendig opened this issue Aug 29, 2019 · 1 comment
Labels
support please use https://discord.gg/DYEq3EMs4U for support questions

Comments

@tobias-kuendig
Copy link
Contributor

What happened?

Using the schema below, when I run go run github.com/99designs/gqlgen the following error occurs:

schemaconfig: schema.graphql:6: Unexpected Name "fragment"

What am I missing? Fragments are supported, right?

Minimal graphql.schema and models to reproduce

type TreeNode {
    id: Int!
    children: [TreeNode!]
}

fragment TreeRecursive on TreeNode {
    id
    children {
        id
        children {
            id
            children {
                id
            }
        }
    }
}

versions

  • v0.9.3
  • go version go1.12.5 linux/amd64
  • go modules
@vektah
Copy link
Collaborator

vektah commented Sep 16, 2019

fragments are for queries, they arent a server feature.

@vektah vektah closed this as completed Sep 16, 2019
@vektah vektah added the support please use https://discord.gg/DYEq3EMs4U for support questions label Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support please use https://discord.gg/DYEq3EMs4U for support questions
Projects
None yet
Development

No branches or pull requests

2 participants