Skip to content

GraphQL fragments ? #24431

Discussion options

You must be logged in to vote

I ran this query just now:

query {
  repository(owner: "wojtekmaj" name:"react-date-picker"){
    object(oid:"50e933af2f28ca8da451c63afcced8dca467f2c7"){
      ...fields
    }
  }
}

fragment fields on Commit {
oid
changedFiles
commitResourcePath
commitUrl
message
resourcePath
url
tree{
entries{
name
}
}
}

And the fragment seemed to work. What is it about fragments that isn’t working for you?

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants