Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update bs-platform to 7.0.1 #29

Merged
merged 3 commits into from
Dec 30, 2019
Merged

update bs-platform to 7.0.1 #29

merged 3 commits into from
Dec 30, 2019

Conversation

leeor
Copy link
Contributor

@leeor leeor commented Dec 25, 2019

This forced a switch from let-anything to bs-let

This forced a switch from let-anything to bs-let
Instead of relying on ocaml exceptions, the new implementation switches
on the return value of simple get, raising the same exception if None is
returned.
@leeor
Copy link
Contributor Author

leeor commented Dec 26, 2019

There's an issue with mutations that have optional args, where resolveField seems to get an Error from ArgEval.evalArgList instead of an Ok which will turn into a ResolveError when lifted.

I'm looking into it.

@leeor
Copy link
Contributor Author

leeor commented Dec 26, 2019

The issue is unrelated to the bs-platform@7 update, see andreas/ocaml-graphql-server#181.

The problem is caused by graphql_ppx_re which is GraphQL spec compliant
in that it does not send over the wire optional variables where they
were not provided, but the server code expects them to be sent as nulls.
@leeor
Copy link
Contributor Author

leeor commented Dec 26, 2019

Solving the missing variables as part of migrating to bs-platform@7 is required since the newer bs-platform mandates migrating from graphql_ppx to graphql_ppx_re which does not send variables that were not assigned values.

@sikanhe
Copy link
Owner

sikanhe commented Dec 30, 2019

Great work @leeor

@sikanhe sikanhe merged commit 71261b9 into sikanhe:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants