{"name":"@apollo/subgraph","version":"2.3.0-beta.2","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@2.3.0-beta.2","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":"2d44fddcf5653ec9c13936ec2e11a80bd590d96a","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-2.3.0-beta.2.tgz","fileCount":70,"integrity":"sha512-1ETJSw0/HvruQmG5cpJPx6fIRFVx8xwhtdQGBN5HpGO/nCjwzZPp4e79vLlnyxAsOl9eYZrB9fk4oHFM5Vs1aA==","signatures":[{"sig":"MEYCIQDkmz7YB7evKVfsglqrq3rL9DvTcwbQDnnNZtvLiMp60wIhAMJzVg7jIA8bGBh/haw7FAGWw3abLL+vlzWAFC2LYoUH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":245417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvs9oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoZRAAoUnsH8/ORw3Pn+0FANwtiJZXjKdXoVvbScFdgI5zGD96HlfA\r\nVwBr89QlOqTNC/0V1mltaDeHZ969emjetcxlT55pN3PoWXoCOpqpIDE1LdNg\r\nAJXlTKfmqD7NXpHWKagq9EUrWNcrQrVNB4vTyLWRKoIZGJB1fEwTyi8lZbGN\r\n8TUZSP3SPM4vnsoBc9JgJ5q3jFVcw9D58lmQuM7CdHPfQBHzmCRibFkwGbBz\r\n5HNIrFYi6YyY6e99dReraQAahgYtgQ1UlKLZOm+UmICaruTIgWYfxbr9R8dF\r\ncnaoyFb326LBhETmrnw5s9oyczS5JZ8KYVbNQ6Fpg1MY+GGHbVEu+KjtTMSY\r\n1DHqBb61uMsFE9PPaIOU25ULLzOLYY4TJg6ZyD+/LYmbE9l7A+bKqcy3OgVL\r\nl4Ko5a+2hOk8BEbiwXEEKAkSIHUV1LizYV+0vhHCZ5FGIFSW4xFUUZ9YJVDL\r\nMMciiMHA1NorEquLfEPMqe7ofbN2LHXeuvaj2+cNrFfc1/UXVCby5bvAgvD3\r\nk/d1M7357hHz3eZ7SnaqB/Rtdl0nqSDN06FBnxxwbugHwfYCjcEE84YRSleL\r\n9rkiI0dtw+ySk5YgbUArLLMexGAFQ9ag8Y+iycKcjjei45bT8WJauUAGWju6\r\nqRLgkcOMk5aIX4pGx70sPyhFQ9x395e9+P0=\r\n=/pfe\r\n-----END PGP SIGNATURE-----\r\n","size":65148,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-2.3.0-beta.2.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":"1a5f8b8b3a4b688732ae1505d48012042bbe1673","_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":"2.3.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^16.5.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_2.3.0-beta.2_1673449319840_0.37686069323194493","host":"s3://npm-registry-packages"},"publish_time":1673449320134,"_cnpm_publish_time":1673449320134,"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"}}