{"name":"@apollo/subgraph","version":"2.3.0-beta.3","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@2.3.0-beta.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":"67ff823402e818d3f3a60538b56540d8d336a00d","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-2.3.0-beta.3.tgz","fileCount":70,"integrity":"sha512-dwJ77toJDpOUSt9rAp5HT893+/A0khVk9HIOnEviHd+AxUJhQRbhwV5UR9M4BgZOaWMe96vaHDgQLaC1aH3rdw==","signatures":[{"sig":"MEUCIAzXrp8Egbl28etA1JfWFblntK1KsmGrWnb2lDfyW4IWAiEAt3QSKAaZokZAGNYcQktnavrFjQ54e5pE0TkzlryRdZ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":246128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyLRXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeVBAAoJDOGNaNY5WkdWnZ6dBqItlrR1K9ZTxNt6Hh+BLPph4+p30S\r\ngwA4cve4WZB5qq3TPD0vB8hF1W8m8pANcp7mcWG86T9468UY5U5tDcC/I9AC\r\nKsuegtWVRkvUpi/FJsNUScGj3jpBsSm8cSePoWSE529AQvx8OrqxkzWJy1/T\r\nsU2Rw9BralPItZv3HLC2IAJBJIjBDHfKxGXAIqEHEPu5elzOaVyT8/NAdSF3\r\ncrt1PC4e4Sgjy/xxgxpT0kNmz728sNH147ou69Ur4JRursMSTxTfMeAumDx2\r\nCXez52a7vnx+vlZqheGN4dO/azjccBjGOMPlHAz8XVHUDmJwdxa32zW6qvbB\r\nwS0cngJNIpdQISZ/5/FZA+sOxmoNu24BoadEs0HYZkT/eOBUm5phfgHiiAAC\r\ni9yZSi6kt6RG3rjt80rcQs6DV9R5Yh6M+p4U3RHi0cCVjFYNStDfBgGU7r+A\r\nXJoKEkft+V7jbq8XKKzZ+VRmczc9wU3rH/URYJdDC0gneNxDjexjlEAeWaZS\r\nHuGM246mURSueQk2f1dvuOyLJGnXVHWUDjx/dkZzAETWzLfE/oi5LbmVJcPf\r\nccpeGOG8TjYbqRLbMKF7dO55M/Ber5dj/OOR2Qr5p1FWqyzD30l0eg7ULF9k\r\nXBbRM2Kdbr0TXFfIWd1bJxjT8rQV2F7WVbs=\r\n=nSst\r\n-----END PGP SIGNATURE-----\r\n","size":63133,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-2.3.0-beta.3.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":"057fc7099139ba1a3af2a6b2ad4667484f2b7d7e","_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.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^16.5.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_2.3.0-beta.3_1674097751495_0.24647897053638013","host":"s3://npm-registry-packages"},"publish_time":1674097751723,"_cnpm_publish_time":1674097751723,"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"}}