Skip to content

Releases: BeatsuDev/GraphQLRequests

v0.0.11

15 Sep 16:06
8989d99
Compare
Choose a tag to compare

Adds from_pydantic function that creates a QueryBuilder from the pydantic class.

What's Changed

  • Clearly differentiate between currently implemented features and future / TODO implementations by @BeatsuDev in #17
  • Un-skips the test that checks if building an invalid type throws a ValueError by @BeatsuDev in #18
  • Increases test coverage by ignoring (almost) impossible lines and creating more tests by @BeatsuDev in #19
  • Uses CODECOV_TOKEN secret to upload coverages by @BeatsuDev in #20
  • Adds a from_pydantic method that creates a QueryBuilder from a pydantic Model by @BeatsuDev in #22

Full Changelog: v0.0.10...v0.0.11

v0.0.10

02 Sep 21:27
Compare
Choose a tag to compare

Implements #11 (support for list type as field)

v0.0.9

30 Aug 12:39
Compare
Choose a tag to compare

Removes unnecessary dependencies (pytest and typing inspect) and changes required python version to 3.8.

v0.0.8

30 Aug 12:34
Compare
Choose a tag to compare

Completely changes syntax to be more succinct.

v0.0.7

18 Jan 18:35
Compare
Choose a tag to compare

Added py.typed marker for type checking.

v0.0.6

07 Jan 17:40
Compare
Choose a tag to compare

Bug fixes

v0.0.5

07 Jan 17:20
Compare
Choose a tag to compare

Added the start_indent argument to Query which allows for queries like these:

print(" "*8 + "something " + Query(Something, indents=2, start_indent=8))
        something {  # Notice how the first bracket is not indented by the start_indent
          id  # Fields are indented by indents (2) + start_indent (8) = 10 spaces
          name
          age
        }  # This line is indented by 8 spaces

v0.0.4

07 Jan 15:09
Compare
Choose a tag to compare

Added support for reserved Python keywords as properties. Simply surround the variable with any amounts of underscores. To disable this behaviour, pass False to the strip_underscores_for_keywords argument of Query:

gqlrequests.Query(MyClass, strip_underscores_for_keywords=False)  # Default value is True

v0.0.3

07 Jan 06:58
Compare
Choose a tag to compare

Complete rewrite. The new way of using this library is shown in the examples of the README

v0.0.2

04 Dec 02:09
Compare
Choose a tag to compare

Some fixes + added ability to strip underscores when creating the query for a GraphQLType.