{"name":"@apollo/subgraph","version":"0.3.3","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@0.3.3","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":"0f9b2fa560d59c6b3c1994bfe84ceb81ccbd9720","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-0.3.3.tgz","fileCount":68,"integrity":"sha512-VH8B0IEa960ajMApWPs0eu/kH28tDUbuXgGJN2ZUo9hIo6LtyPfDRATtHlMr2SeW1Vh3ukiZE3BW78zrtTHCUA==","signatures":[{"sig":"MEUCIGNgWkZY47TUK2sKCd2zT2L8fbZa1oP4bnYPwgxttbGCAiEA/qpqx2gHQQDGoS7VSN1uCrsUIL1H1MoZ4Q4Uze3jTQE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":220138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKO5fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuUQ//e8ucWnOVwGehHGuE+qxrCHI44DOc/gl5/LUwEmdyf5oYkf5W\r\nzmVOwhWslxVcwt+oiguMwcFr4DRi5aZnwXY61q9LoPoNSB4QK2Let/7Z5kts\r\nlj6JpmnrmyYiNVzQWUqcye6F6cfzO2N3uOUaEluhkkCneLv0ak+jeDZEKg63\r\nWGTABVLgGhULN7gajudn00lNQDUM4f5Rsk0USZm5TNL7ETHCDgN/9Mkvinjl\r\nNDgL2rXhpB007MpPFniHfiOFLxcqdzw/ZSfOHG44c1nwkd4IdJ67fHLansqx\r\nrfAzUSwv4foa5ePJVn48TOuS8u+Fe+UFcK5KncJJoGjnZX/f5jDvnKoRWgDA\r\nW0vxaRqwWZo2ON72BEGnf3K4wk7vF8RGrnkWtPdVP3rl+z2S1oGrbI7EtEVH\r\nJCl16ssiYfXVUB+3O7dA6j9SdXotS6ULbeKtmMioJg4MacR2GYDS76crnFiX\r\nX8PsLlRWsEosjVXDVy6ClFks3dIezFQBsad+gKW38AetDQx4iluIh5IqJPRL\r\nxKOd0v/XoMVQqjg5WFhGTH87cUSgNnTInoF7Vv4ffKim3QgWfk+JMiX2Leeo\r\nTY/b6ENtIqZt17mn2Nax2nZjqosAn5kTBe8zQHRU4sm4k343xJvJLmK/RU0C\r\nilsdlPq3nYyr6tWjIhn0sy257bdG8CI+9GA=\r\n=LPIj\r\n-----END PGP SIGNATURE-----\r\n","size":61585,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-0.3.3.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.13.0 <17.0"},"gitHead":"5a5f30f059c0a1f96ebffd2b5c766b90f8899c04","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"deprecated":"All v0.x versions of @apollo/subgraph are now deprecated with an end-of-life date of September 22, 2023. Apollo recommends upgrading to v2.x as soon as possible. For more details, see our announcement blog post (https://www.apollographql.com/blog/announcement/backend/announcing-the-end-of-life-schedule-for-apollo-gateway-v0-x/) and documentation (https://www.apollographql.com/docs/federation/federation-2/backward-compatibility/#is-official-support-ending-for-apollogateway-v0x).","repository":{"url":"git+https://github.com/apollographql/federation.git","type":"git","directory":"subgraph-js/"},"_npmVersion":"lerna/4.0.0/node@v12.22.8+x64 (linux)","description":"Apollo Subgraph Utilities","directories":{},"_nodeVersion":"12.22.8","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"graphql":"^15.8.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_0.3.3_1646849631259_0.8378632287011201","host":"s3://npm-registry-packages"},"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","publish_time":1646849631421,"_cnpm_publish_time":1646849631421,"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"}}