{"name":"@apollo/subgraph","version":"2.4.0-alpha.1","keywords":["graphql","federation","apollo","subgraph"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","_id":"@apollo/subgraph@2.4.0-alpha.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":"7720b75d1782b88dcc7a30da245baff7ef3e7cf6","tarball":"http://registry-npm.ywwl.com/@apollo/subgraph/download/@apollo/subgraph-2.4.0-alpha.1.tgz","fileCount":69,"integrity":"sha512-KZB7u08O+ahJp8nhRl+4J1U35dh9h+Ex2ObbTjj8iGX2H6XJ3ISfK8L1dD59HDl5Mt4r9LgPNEKGfzbqm6rNXA==","signatures":[{"sig":"MEQCIBGu61yYhU2ncn7qiSUFRBNtAq0p0oPKkdotkE5/6X8VAiBbWrL+nuthxpFdqDn3EdZwRiive9siiZttrx47Y0MFkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":210258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC582ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmotsw//S+5VdQ168MEmhqtpYuESlzzxiHbo6NtRzI5JWJ6St0MBoAOQ\r\nR2tNkYn649NlZ8Ajrhqi+oEq5hzBc24uxNZ8Dz1rc3+FaPgqhPpDpWG+fnWn\r\ndYhcEm4uDEPoLSBuXEpPIUlUKYqv/Ry9A+k1KC62DwcRPZqzskcX+4+5VBJi\r\nPfYwlKAF+WX/rM00fyZm+x+R9ZvnuG+fqoFCOLOTg9dB718MHqcyiDwu3Fnf\r\nuROuB5vGdqwdDaX9SzLRLzoNoYAJfVyjm0yxc6RwSLH6IdC28oxzoIYfzSF1\r\nzfz7+bvkLoCCAWcmj8HGlwRNHGiF6gwnVv34mpsozyyKY4tpCcQD5z7qGdE8\r\nZ0hs4WDaowT15WNwNdiw81Ka5hUPOW+FBsQjCdrJlkWCFPvB/6rPRAy/0ybl\r\no7PpLDI2iIHNyEnPcPAKEsEUZNR27Wc/PKJnMmpubfebnFPGqSyGnPlai7Pw\r\nLAfjOyvCI6K6Mzb8TARA3feA3GLeQvkVwpXUoZIvUEQvkP1WhSKAJlyZdL7d\r\nL0qWQ0x4UENs9MBjB2P+O7Qw5XMMVrkE9oYMR9JTl79fRbGoIwXM511ZpDx3\r\nBP/NkCFf8SSdNZolFX3Vs8ykr1iWq2ePV6VB8xcz5AGmk4LQIM72/oCCkdD9\r\nO3sGi77Vs4Ixk3PMyB79vYufgWeUT4Nb0X8=\r\n=qHKM\r\n-----END PGP SIGNATURE-----\r\n","size":51035,"noattachment":false,"key":"/@apollo/subgraph/-/@apollo/subgraph-2.4.0-alpha.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":"01b9c31bdf02a2206bfd9f201d4c283aceffe7ca","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"repository":{"url":"git+https://github.com/apollographql/federation.git","type":"git","directory":"subgraph-js/"},"_npmVersion":"8.19.3","description":"Apollo Subgraph Utilities","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@apollo/cache-control-types":"^1.0.2","@apollo/federation-internals":"2.4.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^16.5.0"},"_npmOperationalInternal":{"tmp":"tmp/subgraph_2.4.0-alpha.1_1678483254304_0.2913900822535904","host":"s3://npm-registry-packages"},"publish_time":1678483254470,"_cnpm_publish_time":1678483254470,"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"}}