openblocks icon indicating copy to clipboard operation
openblocks copied to clipboard

[Feature Request] GraphQL Datasources

Open deathemperor opened this issue 2 years ago β€’ 3 comments

deathemperor avatar Nov 15 '22 03:11 deathemperor

GraphQL integration is in our roadmap. Please stay tuned for updates : )

hanshuai avatar Nov 15 '22 06:11 hanshuai

+1 to this.

Also Is your roadmap public?

a-c-m avatar Nov 15 '22 14:11 a-c-m

We'll be publishing our roadmap soon.

hanshuai avatar Nov 16 '22 06:11 hanshuai

Another +1 to this.

voidberg avatar Nov 28 '22 10:11 voidberg

Hi everyone, GraphQL data source is available now, please check it out, and thanks again for your advice and patience. πŸ˜‰

lmx1117 avatar Dec 09 '22 05:12 lmx1117

Hi there, while the integration feels really good, the data transmitted to the server has a flaw: Variables are no JSON but as string… πŸ™‚

See example here:

  "variables": "{\"email\":\"[email protected]\",\"password\":\"too-many-secrets\"}",
  "query": "query authenticateByEmail($email: String!, $password: String!) {\n  authenticateByEmail(arg1: {email: $email, password: $password}) {\n    jwtToken\n  }\n}"
}

This would be correct:

{
  "variables": { "email": "[email protected]", "password": "too-many-secrets" },
  "query": "query authenticateByEmail($email: String!, $password: String!) {\n  authenticateByEmail(arg1: {email: $email, password: $password}) {\n    jwtToken\n  }\n}"
}

ulbrich avatar Dec 13 '22 16:12 ulbrich

Hi @ulbrich , thanks for reporting this issue. We will fix it in the next version, please stay tuned.

lvhuichao avatar Dec 14 '22 07:12 lvhuichao

Hey @ulbrich , a hot fix image for this issue has been published, please update Openblocks and give us a try πŸ˜„

neon-balcony avatar Dec 15 '22 12:12 neon-balcony

Hi @neon-balcony, I can happily confirm that the fix works nicely communicating with Hasura using GraphQL queries. Thank you so much! πŸŽ‰

ulbrich avatar Dec 15 '22 20:12 ulbrich