Fork me on GitHub
#graphql
<
2017-08-02
>
hmaurer20:08:18

Hi! I am getting the following error when trying to use an input object as the type of a field in an input object: > Sanity check - no option in construct-literal-argument.

hlship20:08:00

Likely a bug. Please add an issue with a minimum example that reproduces the problem.

hmaurer20:08:03

I am using 0.19.0

hlship20:08:34

It's probably in 0.20.0 as well, but it would be nice to be sure.

hmaurer20:08:36

I don’t get how that test can pass and not my schema

hmaurer20:08:57

It’s very simple:

:input-objects
 {:CreateAddressInput
  {:fields
   {:street_name {:type (non-null String)}}}
  :CreateIdentityInput
  {:fields
   {:first_name {:type (non-null String)}
    :last_name {:type (non-null String)}
    :address {:type :CreateAddressInput}}}

hmaurer20:08:19

i’ll file an issue if I can’t fix it

hlship20:08:01

That sure looks like it should work.

hmaurer20:08:26

Ah sorry, I am being silly. My field is named street_name in the schema but I was specifying street_address in the variable

hmaurer20:08:39

Maybe I should file an issue for more specific error message

hmaurer20:08:53

Problem solved though!

theikkila20:08:25

I was thinking that what kind of slack they are talking about in lacinia issues but then realized that it’s probably here 🙂

theikkila20:08:38

@hlship btw thanks for accepting my PRs

hlship20:08:58

Thanks for doing the work.

theikkila20:08:59

I fixed one issue today related to content-type and made another PR for that too

hlship20:08:23

I'll keep an eye out for it. I'm hoping to get 0.3.0 out soon, but am waiting for other internal devs to review some of the PRs.

theikkila20:08:38

I’m already using the master in my own project and thats why I’ll most likely to make new contributions also

theikkila20:08:42

at least the react-native apollo implementation is using the utf-8 charset encoded into content-type so it’s good idea to get it out

theikkila20:08:15

after that the server implementation should be compatible with all apollo clients