Fork me on GitHub
#graphql
<
2021-02-18
>
fabrao07:02:12

Hello all, I´m trying to use apollo angular with lacinia, but I could not use variables, is Lacinia parse something like this?

{"variables":{"idFlow":1},"query":"{\n  flowDefinitionById(id_flow: $idFlow) {\n    id_flow\n    nm_flow\n    id_company\n    tx_definition\n    __typename\n  }\n}\n"}

Lennart Buit07:02:36

You did not declare your variable in the query, say query MyQuery($idFlow: Int!) { … }

👍 3