Skip to content

1.0.0a1

Compare
Choose a tag to compare
@Jackenmen Jackenmen released this 15 Aug 13:40
· 6 commits to main since this release

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 to None to disable the limit.