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

Fragment not generated for array fields #13

Open
matteby opened this issue Feb 20, 2019 · 1 comment
Open

Fragment not generated for array fields #13

matteby opened this issue Feb 20, 2019 · 1 comment

Comments

@matteby
Copy link

matteby commented Feb 20, 2019

I have a schema that has an array field (notificationEmails in the example below). The generated fragment for this schema is missing the field.

Example schema:

type Note {
  text: String!
}

type Step {
  name: String!
  note: Note
  notificationEmails: [String!]
}

Generated fragment:

fragment Note on Note {
  text
}

fragment Step on Step {
  name
  note {
    ...NoteNoNesting
  }
}

Is there anything I may be doing wrong here?

@mehdibeldjilali
Copy link

mehdibeldjilali commented Sep 20, 2019

👍 I have the same problem with resolver that return union... generated fragments does not contain resolver...

union Note = Headline | Paragraph

type Step {
  name: String!
  note: Note
  notificationEmails: [String!]
}

Generated fragments

fragment Step on Step {
  name
  notificationEmails
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants