{"name":"@apollo/subgraph","version":"2.2.2-rc0","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@2.2.2-rc0","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":"5c887aca1b36520460d41b6ac58330376ccc258b","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-2.2.2-rc0.tgz","fileCount":70,"integrity":"sha512-1w9Bzg5lE7QDAzKBI9xOST+DN/5HUIqeECUbZSD8QAOlvvAdGVtjY2bM4r1dHZlJBCamNMfmHmsrq7hHzU8h2A==","signatures":[{"sig":"MEUCIQCLC3lZNvtE39ETLv8MIM1+MRjzro+BhoBwhEWRx7PsBgIgRWfmR4Nth0ownyZjXR3K3FRSZE1nd/t20LT0jq6c+0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":232995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjijzJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHnw//YntIWxlkk+4NJEWC/J40J5I8ONcbyAU8FHtSA1HzWaItxIKN\r\nml+0QQu4syFF00xUwTmReQbCp9BQXokNJgFOVvXkoL5R0yuAireGfggeLHEQ\r\ndo6IYZRhw2aqfR9cnUluWVNAo5XDnw/3aiQ3w1qITu91GCvfLo43GgCcbGts\r\nKnDzt5frhRUe+yju7MFg4y4xABkdFDuRRVnY/2Ckwqu7u29d1R7TQ5z6gY4a\r\nAT8BjExYGU0gnEghXTb+NuKjT31B0F64hSxdd0mp7WRxYJORLEsowTXSz8mR\r\neIMkeb+9QCt3vTZ9Q1S1yvsI/yYUaz9JmksZEBgssmKGb3nI7nUsdeUXubxE\r\nXg8dHKcrxHVEXvf2cK40GFuWZtlrbhSnCRwfNxSxJQ7r0B/ZKSoU5oCbfLjJ\r\nnovCS43xxxqAGKLFr8rgKrz75kyuTaayyvGH8HczWOmXN7Zo0BEoNfEtjzPc\r\n82Yj5Fpy6BfQCyXfSuSdW2JcroVJhFojXKARyoIiPKPXxhBGJzK1rPOZHkec\r\nn9RdgzFFs3AwZY68inIWn7RjxVQ283N9YAtnIEpkbkeyoN3QuYC107vG0FH7\r\nHOSlriLizzJvRJ6yxl0Fjzdjxdib0/AGSShzXGyksjcfWUeLaZovC/kUmvt8\r\nLI1K6FHbR9+BxP1ZHetb6js0wPhePxdcjzc=\r\n=J8iR\r\n-----END PGP SIGNATURE-----\r\n","size":63489,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-2.2.2-rc0.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":"250570f2141d87d86ad773b2a1895e7a6b72a618","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/federation.git","type":"git","directory":"subgraph-js/"},"_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","description":"Apollo Subgraph Utilities","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@apollo/cache-control-types":"^1.0.2","@apollo/federation-internals":"^2.2.2-rc0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^16.5.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_2.2.2-rc0_1670003913263_0.022437583781773185","host":"s3://npm-registry-packages"},"publish_time":1670003913502,"_cnpm_publish_time":1670003913502,"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"}}