POST /api/v4/locations
This endpoint used to create a location with voice assistants & individual listings sites enabled.
POST /api/v4/locations
// mocked schema for tests. | |
import { ApolloClient, InMemoryCache } from 'apollo-boost'; | |
import { SchemaLink } from 'apollo-link-schema'; | |
import { | |
addMockFunctionsToSchema, | |
} from 'graphql-tools'; | |
import { buildClientSchema } from 'graphql'; | |
import * as introspectionResult from './schema.json'; | |
import mocks from '../mocks'; |
export default { | |
Query: () => ({ | |
keywordsByLocationId: () => new MockList(10), | |
listingsForLocation: () => new MockList(20), | |
duplicatesForLocation: () => new MockList(20), | |
}), | |
Mutation: () => ({ | |
addKeywords: (root, args) => ({ | |
ok: true, | |
keywords: addKeywordsResolver(args), |