-
Hello, The documentation only speaks about schema directive, I would like to add query directives to allow the API consumer to allow them some query customization. I would like to have some thing like (based on swapi data): {
allFilms {
films {
en: title @translate(lang: "en")
fr: title @translate(lang: "fr")
it: title @translate(lang: "it")
}
}
} And obtains the directive data during query to use it. Is it possible ? |
Beta Was this translation helpful? Give feedback.
Answered by
rafalp
Mar 23, 2021
Replies: 1 comment 1 reply
-
Ariadne doesn't support custom query directives. Why you can't use field argument for your case? {
allFilms {
films {
en: title(lang: "en")
fr: title(lang: "fr")
it: title(lang: "it")
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tiross
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ariadne doesn't support custom query directives. Why you can't use field argument for your case?