graphql-dotnet / graphql-dotnet/graphql-client

How would you use Fragments?

Open
#460 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
648
Forks
136
PR merge metrics
No merged PRs in 30d

Description

Is there a support to use reusable fragments with this client? As far as I tested, I can use fragments this way:

`@"
query ($ids: [UUID!]!)
{
companiesByIDs (ids: $ids) {
address
iD
...FragmentMetadata
name
}
}
fragment FragmentMetadata on Company
{
metadata{
createdBy
createdOnUTC
dataVersion
modifiedBy
modifiedOnUTC
schemaVersion
}
}
`

But if I have to define them in each query string, then they are pointless and not reusable?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.