Skip to content

Instantly share code, notes, and snippets.

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(
GET _search
{
"query": {
"match_all": {}
}
}
DELETE weather_index
# Map an index with a geo_point location
# Add a single document
PUT /vehicle/car/car1
{
"color": "red",
"make": "Saturn",
"year": 2005
}
# Add more using bulk ...
POST /vehicle/car/_bulk