feat: Introduce adding a new app connection

This commit is contained in:
Ali BARIN
2021-10-17 15:50:42 +02:00
parent 084a831e7a
commit a1363f7fdd
11 changed files with 126 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
import { InMemoryCache } from '@apollo/client';
const cache = new InMemoryCache({
typePolicies: {
App: {
keyFields: ['key']
}
}
});
export default cache;

View File

@@ -1,7 +1,7 @@
import { ApolloClient, InMemoryCache } from '@apollo/client';
import { ApolloClient } from '@apollo/client';
import cache from './cache';
import appConfig from 'config/app';
const cache = new InMemoryCache();
const client = new ApolloClient({
uri: appConfig.graphqlUrl,
cache

View File

@@ -3,6 +3,7 @@ import { gql } from '@apollo/client';
export const GET_APPS = gql`
query GetApps($name: String) {
getApps(name: $name) {
key
name
iconUrl
docUrl