Open
Description
Hasura has their own style of writing queries:
https://hasura.io/docs/1.0/graphql/manual/queries/query-filters.html
Here's an example adapter to adapt some compatibility with Hasura:
export class CustomAdapter extends DefaultAdapter {
public getRootMutationName: () => string = () => 'mutation_root'
public getRootQueryName: () => string = () => 'query_root'
public getConnectionMode (): ConnectionMode {
return ConnectionMode.PLAIN
}
public getArgumentMode (): ArgumentMode {
return ArgumentMode.TYPE
}
public getNameForFetch (model: Model, plural: boolean): string {
return model.singularName
}
public prepareSchemaTypeName (name: string): string {
return name
}
}
However, since the filter name cannot be changed (fixed to be "where"), I wonder if we can change it from the plugin -- Let's add more adapter transforms for that.
Metadata
Metadata
Assignees
Labels
No labels