graphql-constraint-directive icon indicating copy to clipboard operation
graphql-constraint-directive copied to clipboard

Validate a object?

Open cesarve77 opened this issue 7 years ago • 2 comments

I'm wondering if is possible validate a object against the schema

What I want to do is validate the input in the client before send it to graphql server.

cesarve77 avatar Aug 15 '18 06:08 cesarve77

It should be possible, but unfortunately this library was designed with servers in mind and will require substantial changes.

confuser avatar Sep 04 '18 09:09 confuser

I'm working on this in my branch. I finally cracked the nut I think.

See validating complex types

kristianmandrup avatar Nov 19 '18 21:11 kristianmandrup