{"name":"@apollo/subgraph","version":"2.3.0-beta.1","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@2.3.0-beta.1","maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"homepage":"https://github.com/apollographql/federation#readme","bugs":{"url":"https://github.com/apollographql/federation/issues"},"dist":{"shasum":"dc996d81df4455e5278b3cf7163989423f17bcdf","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-2.3.0-beta.1.tgz","fileCount":70,"integrity":"sha512-hQB971rIERyuwiakInnkIgVnktqClOF+Rv9n4r75C33mx0cm6hAG8JRF2Ar9YmS315WyZVi6j6wrOOxPovGOsw==","signatures":[{"sig":"MEUCIQDL28gGvDbLmm7kwBt0NXNjDViLEkBl0k+/ERPOirt7QQIgV3s+cQ/bccoLEdh+tw3aIUeqC1mj3xi68LiUYcAYlJY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvdaVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1Jw//dvvZomAtryBU/YbkrSibF30/2e/vyzPqgJlhmpmjTkEQ22WQ\r\nWmv/29VM6JmfcDROZd3xkkTiutO40hKXm2baAh/MhBuhHrLtwvzOgOmKYMKO\r\nn9W4ySJlH3fYwTAwmw7wjzJO2VoxiRu9qMoP+I4dHMmQcxJuuHVEazypcdXu\r\nbY4yb2nFbCBPlKvAA2Fe1yFNSxqXOY2su6L012zUHuRJWmn3NBTP4MeQ3XEz\r\nW1vYzkIMDqM2XfnoSLYY3VOzWiyFDtf4SZ+qQGSFoQnzJmIK2jkDIYmx40u0\r\n+b331QJn/ra/X9VIIxqLRi+4wYb6S1I4Ov2ZApxYvvX1AStIS2Jhnie2ttWK\r\nlTzWIqyCISf+9Bv1IttGmiub/goZDi2ITy2gsleB9A80RVC/hy9sMD89z89g\r\nwxntEw8JJPRdy2ynn/nUF3s2Bb1MynXS/0ms+OeekNKupsiv5i+OaWBmVSeI\r\n+AenLJpiBSYXFTWQMTriSrhdgU4pCE9Hg6WbGC5jsfSmDjmufE/ki++MPMNS\r\nAmBmzPol3KfNjcAHZVZu3UgxZ76QTh3AEBjGICLjQrQXeD+pLn58nrFG0085\r\nbbJXLgheFZmnpsO84MWWNDth2xUQ+qIOq4mUM0+1S1aXbfGb47dzFqWYI/7F\r\nyf3V/xrN28v4a49cgtAZci8lMKA8ENDRvvs=\r\n=nNz5\r\n-----END PGP SIGNATURE-----\r\n","size":65905,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-2.3.0-beta.1.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","readme":"# `Apollo Subgraph`\n\nThis package provides utilities for creating GraphQL microservices, which can be combined into a single endpoint through tools like [Apollo Gateway](https://github.com/apollographql/federation/tree/main/gateway-js).\n\nFor complete documentation, see the [Apollo Subgraph API reference](https://www.apollographql.com/docs/federation/subgraphs/).\n\n## Usage\n\n```js\nimport { ApolloServer } from '@apollo/server';\nimport { startStandaloneServer } from '@apollo/server/standalone';\nimport { gql } from 'graphql-tag';\nimport { buildSubgraphSchema } from '@apollo/subgraph';\n\nconst typeDefs = gql`\n  type Query {\n    me: User\n  }\n\n  type User @key(fields: \"id\") {\n    id: ID!\n    username: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    me() {\n      return { id: \"1\", username: \"@ava\" }\n    }\n  },\n  User: {\n    __resolveReference(user, { fetchUserById }){\n      return fetchUserById(user.id)\n    }\n  }\n};\n\nconst server = new ApolloServer({\n  schema: buildSubgraphSchema([{ typeDefs, resolvers }])\n});\n\n// Note the top-level await!\nconst { url } = await startStandaloneServer(server);\nconsole.log(`🚀  Server ready at ${url}`);\n```\n","engines":{"node":">=14.15.0"},"gitHead":"7486813c833f9cbeb5103bf27d0628bd9cfe4795","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/federation.git","type":"git","directory":"subgraph-js/"},"_npmVersion":"8.15.0","description":"Apollo Subgraph Utilities","directories":{},"_nodeVersion":"16.17.0","dependencies":{"@apollo/cache-control-types":"^1.0.2","@apollo/federation-internals":"file:../internals-js"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^16.5.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_2.3.0-beta.1_1673385620959_0.7557999424449895","host":"s3://npm-registry-packages"},"publish_time":1673385621112,"_cnpm_publish_time":1673385621112,"dist-tags":{"alpha":"2.10.0-alpha.4","beta":"2.9.0-beta.0","connectors":"2.9.0-connectors.9","latest":"2.10.0","latest-1":"0.6.1","next":"2.11.0-preview.0","preview":"2.11.0-preview.0","testing":"2.7.4-testing.1"}}