Releases: BeatsuDev/GraphQLRequests
Releases · BeatsuDev/GraphQLRequests
v0.0.11
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
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
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
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