This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GraphQLSchema, printSchema } from 'graphql'; | |
import { transformSchemaFederation } from 'graphql-transform-federation'; | |
import { makeSchema } from '@nexus/schema'; | |
import graphqlTypeJson from 'graphql-type-json'; | |
import { Products } from '../resolvers/Products'; | |
import { Product } from '../resolvers/Product'; | |
import { types } from '../core/product'; | |
import { DirectiveNode, ObjectTypeDefinitionNode, parse, visit, print } from 'graphql/language'; | |
export async function buildNexusFederatedSchema( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _search | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} | |
DELETE weather_index | |
# Map an index with a geo_point location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add a single document | |
PUT /vehicle/car/car1 | |
{ | |
"color": "red", | |
"make": "Saturn", | |
"year": 2005 | |
} | |
# Add more using bulk ... | |
POST /vehicle/car/_bulk |