graphql_fragment_builder 1.1.0
graphql_fragment_builder: ^1.1.0 copied to clipboard
A small Dart builder for GraphQL selection sets, variables, and operation documents.
1.1.0 #
- Added complete GraphQL operation document output with
buildDocument(). - Added
GraphQLOperationTypefor query, mutation, and subscription documents. - Added typed variable definitions through
QueryParameter.typeandisRequired. - Added
QuerySelectionfor aliases, field arguments, and nested selections. - Added automatic variable collection across root arguments, nested selections, inline fragments, and named fragment definitions.
- Added
argumentNameso schema argument names can differ from local variable names. - Added real named fragment support with
GraphQLFragmentDefinitionandFragmentSpread. - Added
InlineFragmentfor interface and union selections. - Added scalar root field support for operation documents without nested selections.
- Added GraphQL variable type validation.
- Added duplicate variable detection to avoid silent variable-map overwrites.
- Expanded tests around nested variables, fragments, scalar roots, invalid types, and duplicate variables.
- Cleaned generated selection formatting.
- Added CI, contribution guidance, security guidance, and fuller tests.
1.0.0 #
- Initial version of the graphql_fragment_builder package
- Includes QueryFragment, QueryParameter, and GraphQLQueryBuilder classes
- Supports building GraphQL queries with fragments and parameters