- fix: Solved a bug related to GraphQLCache
cache
param that cached all queries and mutations in an unexpected way. Will remove parameter until bug is fixed and feature is implemented completely in the future
- fix (breaking!): Renamed from
SimpleGraphQl
toSimpleGraphQL
for consistency and good Dart class naming practices. - feat: added
defaultHeaders
parameter toSimpleGraphQL
constructor to set default headers for all queries and mutations. - feat: added
headersInjectionBehavior
parameter toquery()
andmutation()
methods. It allows you to choose if theheaders
parameter should be merged with thedefaultHeaders
or override them. - fix: Made
apiUrl
parameter optional. It can be set later by assigning a new value to theapiUrl
instance property. - feat: Added
NoUrlException
to handle cases whereapiUrl
is not set before callingquery()
ormutation()
methods. - feat: Added
authHeaderKey
andtoken
parameters toquery()
andmutation()
methods. Now you can set theauthHeaderKey
andtoken
on a per-request basis. - feat: You can now define your own
GraphQLCache
andhttp.Client
instances to be used bySimpleGraphQL
on every query and mutation call. - feat:
query()
andmutation()
methods now accept optionalclient
parameter to use a customhttp.Client
on a per-request basis. - feat:
authHeaderKey
andtoken
parameters can now be set on constructor and/or onquery()
andmutation()
methods. - refactor:
headerKey
parameter in constructor was marked as deprecated in favor ofauthHeaderKey
. It will be removed in future versions. - docs: Documentation update.
- docs: New test examples in
example
folder.
- Documentation update.
- The package usage have been documented.
- CHANGELOG format fixed.
SimpleGraphQl
class for simplified GraphQL query petitioning.
- Added package exceptions to exports for easier reference.