feat: Introduce reset and verify connection mutations

This commit is contained in:
Faruk AYDIN
2021-10-22 15:55:25 +02:00
committed by Ali BARIN
parent de82dbfe29
commit 44fbaeee82
9 changed files with 168 additions and 18 deletions

View File

@@ -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,
};

View File

@@ -0,0 +1,9 @@
import { gql } from '@apollo/client';
export const RESET_CONNECTION = gql`
mutation ResetConnection($id: String!) {
resetConnection(id: $id) {
id
}
}
`;

View 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
}
}
}
`;