elm-graphql icon indicating copy to clipboard operation
elm-graphql copied to clipboard

Fix IntrospectionQuery when use non-GET methods

Open varavut opened this issue 8 years ago • 5 comments

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.

  1. 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.

varavut avatar Oct 23 '16 11:10 varavut

@jahewson Is this project dead, or is it safe to use?

anagrius avatar Dec 10 '16 01:12 anagrius

@anagrius, it's safe to use - sorry I've been crazy busy but I will be merging PRs and fixing bugs soon.

jahewson avatar Dec 16 '16 04:12 jahewson

Really looking forward to using this with POST-only server + Elm 0.18

ghost avatar Jan 17 '17 05:01 ghost

@jahewson this would be very helpful with Absinthe (Elixir's GraphQL library). Could you merge please?

wpcarro avatar Mar 09 '17 23:03 wpcarro

Any news on this?

ronanyeah avatar Jul 14 '17 12:07 ronanyeah