chore: Use string IDs instead of integer ones
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
86d5cceec7
commit
c6e2b94128
@@ -1,8 +1,8 @@
|
||||
import { GraphQLInt, GraphQLNonNull, GraphQLBoolean } from 'graphql';
|
||||
import { GraphQLString, GraphQLNonNull, GraphQLBoolean } from 'graphql';
|
||||
import RequestWithCurrentUser from '../../types/express/request-with-current-user';
|
||||
|
||||
type Params = {
|
||||
id: number;
|
||||
id: string;
|
||||
data: object;
|
||||
};
|
||||
const deleteConnectionResolver = async (
|
||||
@@ -23,7 +23,7 @@ const deleteConnectionResolver = async (
|
||||
const deleteConnection = {
|
||||
type: GraphQLBoolean,
|
||||
args: {
|
||||
id: { type: GraphQLNonNull(GraphQLInt) },
|
||||
id: { type: GraphQLNonNull(GraphQLString) },
|
||||
},
|
||||
resolve: (_: any, params: Params, req: RequestWithCurrentUser) =>
|
||||
deleteConnectionResolver(params, req),
|
||||
|
Reference in New Issue
Block a user