prisma-binding icon indicating copy to clipboard operation
prisma-binding copied to clipboard

Document what Options arg in generated queries/mutations do

Open checkmatez opened this issue 7 years ago • 1 comments

Generated types through Prisma-bindings 2.0 suggest, that there is a 3d argument to queries: db.query.something(args, info, options). Where options look like this:

export interface Options {
    transforms?: Transform[];
    context?: Context;
}
export declare type Transform = {
    transformSchema?: (schema: GraphQLSchema) => GraphQLSchema;
    transformRequest?: (originalRequest: Request) => Request;
    transformResult?: (result: Result) => Result;
};

I wonder what transforms actually do? And how can I use them?

checkmatez avatar Jul 03 '18 18:07 checkmatez

Hello from 2019:)

Fi1osof avatar Aug 24 '19 13:08 Fi1osof