1.0.0a1
Contains BREAKING changes.
Changelog
-
BREAKING: Change how templates work
Now, template variables have a syntax:
${var}
and by default, they are substituted with an equivalent GraphQL object, i.e. strings will automatically be quoted, lists will be represented with[...]
, etc.With this change, a new
GraphQLEnum
wrapper class was added to allow users to still use Enum types in their GraphQL calls using templates.If this is still not enough, a
literal
format specifier can be used:
${var:literal}
-
BREAKING: Add support for per-operation cost limit (#3)
Field builders can now define the
COST
of the call as a class attribute.Operation builder must now define the
MAX_COST
of a single operation.
This can be set toNone
to disable the limit.