feat: Introduce reset and verify connection mutations
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { CREATE_CONNECTION } from './create-connection';
|
||||
import { UPDATE_CONNECTION } from './update-connection';
|
||||
import { VERIFY_CONNECTION } from './verify-connection';
|
||||
import { RESET_CONNECTION } from './reset-connection';
|
||||
import { DELETE_CONNECTION } from './delete-connection';
|
||||
import { CREATE_AUTH_LINK } from './create-auth-link';
|
||||
|
||||
@@ -10,6 +12,8 @@ type Mutations = {
|
||||
const mutations: Mutations = {
|
||||
createConnection: CREATE_CONNECTION,
|
||||
updateConnection: UPDATE_CONNECTION,
|
||||
verifyConnection: VERIFY_CONNECTION,
|
||||
resetConnection: RESET_CONNECTION,
|
||||
deleteConnection: DELETE_CONNECTION,
|
||||
createAuthLink: CREATE_AUTH_LINK,
|
||||
};
|
||||
|
9
packages/web/src/graphql/mutations/reset-connection.ts
Normal file
9
packages/web/src/graphql/mutations/reset-connection.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const RESET_CONNECTION = gql`
|
||||
mutation ResetConnection($id: String!) {
|
||||
resetConnection(id: $id) {
|
||||
id
|
||||
}
|
||||
}
|
||||
`;
|
13
packages/web/src/graphql/mutations/verify-connection.ts
Normal file
13
packages/web/src/graphql/mutations/verify-connection.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const VERIFY_CONNECTION = gql`
|
||||
mutation VerifyConnection($id: String!) {
|
||||
verifyConnection(id: $id) {
|
||||
id
|
||||
verified
|
||||
data {
|
||||
screenName
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user