Use a plugin
Using a plugin.
- Simply install it. Best method is using
pip install tartiflette-plugin-time-it
. - Then ask the
create_engine
api to load it like this:
engine = await create_engine(
sdl,
modules=[
"tartiflette_plugin_a_plugin",
{
"name": "tartiflette_plugin_time_it",
"config": {
"foo": "bar"
}
}
]
)
Some plugins need config, some don't. Be sure to have a look at their respective documentation.