recursive-graphql-fragments
v1.0.1
Published
## Usage
Downloads
2
Readme
Recursive GraphQL Fragments
Usage
This library transforms any fragment spreads with @recursive(depth: X)
into a set of expanded fragments.
Transforming this:
fragment NestingDollFields on NestingDoll {
name
nestingDoll {
...NestingDollFields
}
}
query GetNestedDolls {
nestingDoll {
...NestingDollFields @recursive(depth: 3)
}
}
Into this:
query GetNestedDolls {
name
nestingDoll {
name
nestingDoll {
name
}
}
}