{"name":"@apollo/federation","version":"0.300.0-alpha.2","description":"Apollo Federation Utilities","main":"dist/index.js","types":"dist/index.d.ts","keywords":[],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","engines":{"node":">=12.0 <15.0"},"publishConfig":{"access":"public"},"dependencies":{"apollo-graphql":"^0.5.0","apollo-server-env":"^3.0.0-alpha.2","core-js":"^3.4.0","lodash.xorby":"^4.7.0"},"peerDependencies":{"graphql":"^15.0.0"},"gitHead":"6f3711b589dca8079264969263266cd7b6010ed3","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","readmeFilename":"README.md","_id":"@apollo/federation@0.300.0-alpha.2","_nodeVersion":"10.22.0","_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","dist":{"integrity":"sha512-Sdr0M4UqzKEULhNgB84ipnWgSkZ9hDOQqNrl2EzBb03vp79osRRpNymV1dLwPqiBqpzAR8OtyQ/NWnSiifw3UQ==","shasum":"1668d13d727a9169ea96f7aaa3e3324c483010c6","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.300.0-alpha.2.tgz","fileCount":287,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa1ZZr7t3dVlPuqXRIOcS6U1b+Uzl+Rqx6STdxBjE36QIhAM0Y0OIfJi8F0d0dmFRvDh6AHfct3n8/Y7HMw7dc8K+1"}],"size":117673,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.300.0-alpha.2.tgz"},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/federation_0.300.0-alpha.2_1596744058622_0.11656963469222692"},"_hasShrinkwrap":false,"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).","publish_time":1596744058760,"_cnpm_publish_time":1596744058760,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}