{"dist":{"shasum":"1668d13d727a9169ea96f7aaa3e3324c483010c6","tarball":"https://registry.npmjs.org/@apollo/federation/-/federation-0.300.0-alpha.2.tgz","fileCount":287,"integrity":"sha512-Sdr0M4UqzKEULhNgB84ipnWgSkZ9hDOQqNrl2EzBb03vp79osRRpNymV1dLwPqiBqpzAR8OtyQ/NWnSiifw3UQ==","signatures":[{"sig":"MEYCIQCa1ZZr7t3dVlPuqXRIOcS6U1b+Uzl+Rqx6STdxBjE36QIhAM0Y0OIfJi8F0d0dmFRvDh6AHfct3n8/Y7HMw7dc8K+1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":682232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLGF7CRA9TVsSAnZWagAAe1QP/RstkSE3Rx/P3s34iiuG\nN+tIBap+SRtVjjrejCHQOjciTQKR9yVehi99ePrCy/9yFmPDCQjVyGIdma7W\nKFCVH8am4mfKVosGfd/MSgC4fT+aNZ0O4r2WYC9cGkbctuFhLlb7I4jdOslP\nnplnozzDa+q0bN85DJIP8TuoigND1oNQ99gyepe9zR6WRlGrLoAz2JXxk+pf\ntEfvAP2NZLj1JGX20X++8ERP3P3q3/Udo+xPh3U5IhT7zqDq7m5DNj/BlAUJ\ntj/BEXZDtV7FrMRPxSfoYGJFYaUuhWxXq5g7y4iZngq0TyRFd+FOOPNaGxXM\nF1rZLXyWvoM+y6qAxXYx3nfjrZ89gP3leRaXvzqIqg9pUE/xdJ05Wrs+v68n\nBxEq59SubRLzlIW9GJ8FqGd7xTy8XnGrnof1RgxjmmXHYRVrbV8w3r6FWFdn\nXi4NRiYdRB65i7YMXIJdh5wJrl3dKvOT+dY4qzs1IqpjwE4uqpm7AAILeAH8\nSoU4hwqVBSYibcCm3L8SnbmBGj7OVJnQAZ76qetWnhlIzYIYkjsEeF+LMLyc\ntSxUKZu5hfNitiwQPoDzeFukK4wB5DN42W3ycRuYbzNPkjt+jn7i8cHDeIdJ\nNMEl/RMvdWf7dz75ZtjLrBdYBAi0ifN4sQATFhtR2EFjpGAVsnZx4uFEJj9V\noCAs\r\n=WraC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@apollo/federation","types":"dist/index.d.ts","author":{"name":"Apollo","email":"opensource@apollographql.com"},"readme":"# `Apollo Federation Utilities`\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/apollo-server/tree/main/packages/apollo-gateway).\n\nFor complete documentation, see the [Apollo Federation API reference](https://www.apollographql.com/docs/apollo-server/api/apollo-federation/).\n\n## Usage\n\n```js\nconst { ApolloServer, gql } = require(\"apollo-server\");\nconst { buildFederatedSchema } = require(\"@apollo/federation\");\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: buildFederatedSchema([{ typeDefs, resolvers }])\n});\n```\n","engines":{"node":">=12.0 <15.0"},"gitHead":"6f3711b589dca8079264969263266cd7b6010ed3","license":"MIT","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"keywords":[],"deprecated":"The @apollo/federation package is deprecated and will reach end-of-life September 22, 2023. It contains outdated utilities for both running subgraphs and composing supergraph schemas. Please migrate to the appropriate package for your use case (@apollo/subgraph or @apollo/composition). 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).","_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Apollo Federation Utilities","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_nodeVersion":"10.22.0","dependencies":{"core-js":"^3.4.0","lodash.xorby":"^4.7.0","apollo-graphql":"^0.5.0","apollo-server-env":"^3.0.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/federation_0.300.0-alpha.2_1596744058622_0.11656963469222692","host":"s3://npm-registry-packages"},"_id":"@apollo/federation@0.300.0-alpha.2","version":"0.300.0-alpha.2"}