- [organizational work]
- move query planning and execution into apollo-federation package
- create new apollo-gateway and move over existing gateway minus the sass integration
- create apollo-gateway-enterprise (or some other name) for enterprise version connected to sass
- setup docs for gateway
- transfer docs in quip to docs framework
- document migration from schema stitching
- document composition validation errors and warnings
- document query planner codebase
This file contains hidden or 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
| extend type User @key(fields: "id") { | |
| id: ID! @external | |
| reviews: [Review] | |
| } |
This file contains hidden or 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
| const { ApolloGateway } = require("@apollo/gateway"); | |
| const gateway = new ApolloGateway({ | |
| serviceList: [ | |
| { name: "accounts", url: "https://pw678w138q.sse.codesandbox.io/graphql" }, | |
| { name: "reviews", url: "https://0yo165yq9v.sse.codesandbox.io/graphql" }, | |
| { name: "products", url: "https://x7jn4y20pp.sse.codesandbox.io/graphql" }, | |
| { name: "inventory", url: "https://o5oxqmn7j9.sse.codesandbox.io/graphql" } | |
| ] | |
| }); |
This file contains hidden or 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
| # accounts | |
| type User @key(fields: "id") { | |
| id: ID! | |
| username: String | |
| } | |
| # reviews service | |
| type Review { | |
| author: User @provides(fields: "username") | |
| } |
This file contains hidden or 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
| type Product @key(fields: "upc") @key(fields: "sku") { | |
| upc: String! | |
| sku: String! | |
| } | |
| type User @key(fields: "id organization { id }") { | |
| id: ID! | |
| organization: Organization! | |
| } |
This file contains hidden or 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
| type User @key(fields: "id") { | |
| id: ID! | |
| username: String | |
| } |
This file contains hidden or 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
| type User @key(fields: "id") { | |
| id: ID! | |
| username: String | |
| } |
This file contains hidden or 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
| " =============================================================== | |
| " norma | |
| " | |
| " URL: | |
| " Author: jbaxleyiii | |
| " License: MIT | |
| " Last Change: 2016/11/03 00:26 | |
| " =============================================================== | |
| let g:colors_name="norma" |
This file contains hidden or 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
| const { createClient, gql } = require("apollo-server/test-utils"); | |
| const { server } = require("../server"); | |
| describe("admin user", () => { | |
| let client; | |
| beforeAll(async () => { | |
| // second argument here is the request | |
| client = await createClient(server, ({ req }) => ({ | |
| user: { |
This file contains hidden or 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
| const query = gql` | |
| # query CartItems { | |
| # cartItemIds @client @export(as: "ids") | |
| # } | |
| query Cart($ids: [Id]!) { | |
| # $ids: cartItemIds @client | |
| cartItemIds @client @export(as: "ids") | |
| cart(itemIds: $ids) { |