feat: write useConfig hook

This commit is contained in:
Ali BARIN
2023-08-10 18:07:24 +00:00
parent ef9359b208
commit b590f0f98f
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { gql } from '@apollo/client';
export const UPDATE_CONFIG = gql`
mutation UpdateConfig($input: JSONObject) {
updateConfig(input: $input)
}
`;

View File

@@ -0,0 +1,8 @@
import { gql } from '@apollo/client';
export const GET_CONFIG = gql`
query GetConfig($keys: [String]) {
getConfig(keys: $keys)
}
`;