GraphQL Engine built with Python 3.6+ / asyncio
sdl_file_encoding
argument to Engine
class, to specify the encoding of SDL filessdl_file_encoding
argument to create_engine
method, to specify the encoding of SDL filespytz
dependencycoerce_parent_concurrently
parameter to create_engine
, Engine.__init__
& Engine.cook
to control whether or not field will be coerced concurrentlyparent_concurrently
parameter to both @Resolver
& @Subscription
in order to control whether or not the decorated field should be coerced concurrentlyx86_64
only) and Linux (x86_64
only). If your system architecture is one of those, you may not need to install cmake
anymore, as the wheels come pre-built with a compiled version of libgraphqlparser
concurrently
parameter to list_concurrently
on both @Resolver
& @Subscription
lark-parser
from 0.11.2
to 0.11.3
pytest
from 6.2.2
to 6.2.4
pytest-cov
from 2.11.1
to 2.12.1
pytest-asyncio
from 0.14.0
to 0.15.1
pylint
from 2.7.2
to 2.9.5
black
from 20.8b1
to 21.7b0
isort
from 5.7.0
to 5.9.2
pytest-benchmark
from 3.2.3
to 3.4.1
@nonIntrospectable
now supports SCHEMA object decoration.schema @nonIntrospectable {
...
}
CodeQL
analysis Github Actioncoerce_list_concurrently
parameter to create_engine
, Engine.__init__
& Engine.cook
to control whether or not output list should be coerced concurrentlyconcurrently
parameter to both @Resolver
& @Subscription
in order to control whether or not the output list of the decorated field should be coerced concurrently1.2.0
changelog (thanks @mkniewallner)1.2.0
changelog (thanks @garyd203)README.md
typo (thanks @mazzi)1.2.0
version (thanks @garyd203)1.2.0
)black
from 19.10b0
to 20.8b1
isort
from 4.3.21
to 5.6.4
lark-parser
from 0.8.5
to 0.11.1
pylint
from 2.5.2
to 2.6.0
pytest-asyncio
from 0.12.0
to 0.14.0
pytest-cov
from 2.8.1
to 2.10.1
pytest-xdist
from 1.32.0
to 2.1.0
pytest
from 5.4.1
to 6.1.2
pre_output_coercion
hooks are called when OBJECT
types are retrieved through an UNION
or an INTERFACE
. Furthermore UNION/INTERFACE
hooks are also called before the Object
ones are called.pytest
is now in version 2.5.2query_cache_decorator
argument at engine initialisation allowing to forward a custom decorator to use to cache query parsing.json_loader
argument to engine creation APIs so json loader can be customized.custom_default_arguments_coercer
argument at engine initialisation to override the callable used to coerce arguments.arguments_coercer
to @Directive
, @Subscription
& @Resolver
decorator to override the callable used to coerce arguments on the decorated directive/field.flex
and bison
for installing Tartiflette. cmake
is still necessary.asyncio
tasks.InputValueDefinitionNode
to the on_argument_execution
hook.
Note: this brings a break changes from previous versions, to upgrade to this version you'll have to update your
on_argument_execution
methods:
@Directive("MyDirective")
class MyDirective:
async def on_argument_execution(
self,
directive_args: Dict[str, Any],
next_directive: Callable,
parent_node: Union["FieldNode", "DirectiveNode"],
+ argument_definition_node: "InputValueDefinitionNode",
- argument_node: "ArgumentNode",
+ argument_node: Optional["ArgumentNode"],
value: Any,
ctx: Optional[Any],
) -> Any:
# Write your business logic here
- return next_directive(parent_node, argument_node, value, ctx)
+ return next_directive(parent_node, argument_definition_node, argument_node, value, ctx)
ISSUE-370 - Fix EnumValue uniqueness in schema definition validation rule. It should now throw the correct error in the correct case.
enum anEnum {
A
A
B
}
Will throw a GraphQLSchemaError
exception at engine
build time. You can't have duplicates values.
But now:
type X {
afield:String
}
enum anEnum {
Value1
X
}
Doesn't throw a GraphQLSchemaError
for the use of X
as an EnumValue
. This was a buggy schema error detection
ISSUE-372 - Fix SDL Validation, Now ObjectFollowInterface
validator validate field arguments and allows for field type to be covariant
of the interface defined type.
Typing on the documentation related to the argument_node
argument on the on_argument_execution
directive hook.
on_subscription_execution
.