elm-graphql
elm-graphql copied to clipboard
Fix IntrospectionQuery when use non-GET methods
Hello,
I have try to use elm-graphql with Apollo Server that require to use only POST method and I found some problems and try to fix as below.
- options.method and options.schema is not pass to the config object.
- add them to elmPackageJson.graphql instead elmPackageJson because the config object wull read from elmPackageJson.graphql. 2) encode body with JSON.stringify is not work
- use the json: true option and set body object to body property directly. 3) In my app there are some custon scalar types such as Date that will make unexpected type error
- log the error instead throw an error then a user will can fix elm code manually.
Thank you for your work.
@jahewson Is this project dead, or is it safe to use?
@anagrius, it's safe to use - sorry I've been crazy busy but I will be merging PRs and fixing bugs soon.
Really looking forward to using this with POST-only server + Elm 0.18
@jahewson this would be very helpful with Absinthe (Elixir's GraphQL library). Could you merge please?
Any news on this?