I was wondering what people's thought are on best ...
# prisma-whats-new
s
I was wondering what people's thought are on best practices for validation. From what I gather reading the following link is that the suggested approach to data validation in Graphcool is to use a
TRANSFORM_ARGUMENT
function which would get invoked after initial schema validation. https://www.graph.cool/docs/reference/functions/request-pipeline/transform-input-arguments-caich7oeph/ For another project backed by a thin model layer in front of MongoDB using Apollo Server, I've been doing some validation using custom scalars as described here: http://dev.apollodata.com/tools/graphql-tools/scalars.html I've also come across this proposal for input type validation extension to GraphQL spec https://github.com/graphql/graphql-js/issues/361 Wondering what people's thoughts are on the different alternatives..
n
would really love to discuss this in the forum instead: https://www.graph.cool/forum/ 🙂 thanks for your detailed question!
s
@nilan 👍 just posted there with title
Validation Best Practices
.. pending approval
n
thanks 😄
h
Something like Boom would be awesome actually