{"name":"@apollo/federation","version":"0.16.7-alpha.0","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":">=8"},"publishConfig":{"access":"public"},"dependencies":{"apollo-graphql":"^0.4.0","apollo-server-env":"^2.4.4","core-js":"^3.4.0","lodash.xorby":"^4.7.0"},"peerDependencies":{"graphql":"^14.0.2 || ^15.0.0"},"gitHead":"a7d6e26cb1915a2d11f766df84d555562e9986ba","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/master/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.16.7-alpha.0","_nodeVersion":"10.21.0","_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (linux)","dist":{"integrity":"sha512-q13vym0E9a09/j5kG4R3CGOLV5dzWhBHAJlwx3rGWKY6pH4ZnViUnHUGa3b6crH6vaygBdXxmcGC2rfHSUWEbA==","shasum":"ddbfbe63bfef6f3b48e574c001a133be2a52415e","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.16.7-alpha.0.tgz","fileCount":275,"unpackedSize":601719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6RGDCRA9TVsSAnZWagAAzQQQAIQsOUo/U059QVaV6Jnh\n8up4CcNTou/PsKnmK+2usGl9J4kNSDzwS4K2TL5Z28hrl2a0WE3VOSCoRia8\nMsqgkaTDYAmw+LD19vMNtVnZ/Gvi0oWALf3AgMgxbSj2w3YyBQvN/Zibd+t4\nMlYuMZlWYj3bcLOSjtX/zCTS2pr7U44wvwAbgVi5HPR6dvxdlTOF/X+3zo78\ni0Pc76RZZ0YQRb9WVP6IliK5BIn+rzgvnBpHso+fJE8MHUHx/5l1q3DnZ6H8\n2AqTQGLv8GnZv8lXbb5g9zMU+KQElhXFoZxuumRXwuQ1wyaTBfnQEY8dZHp7\nIJUvOtB6SEiNRETiYyEvPLxIQ0vpP8aPJi9bsbygMyTgCfB/eGWsSaDsSdnL\nn98rx+Gb9KqTSnyThwsdXCsJvRaD3rHqmXeblzp606vKbPH/RwZbFSPakQqJ\nm94Z2/1ibE/jzXvlXHIUxeyZ2Fs/vtuw7GSjd/wZdY7jaof4HZ7KIvnEeZs8\n8y0xASpPG0ixcIcNGbgfLEC7x/GFTzaxGhy5twy2LnB1nLviFKK93/sWBm7O\ngO+jWnMp3+RSAksbw78klwS+g3nQ8g9FcKsCwe8ygLpFxjhAXxStDRQ6+Jxw\nw8MR5Cb5mEnm6L3+t1CXqQGuTqQlOKg6bkHI1HzSNOOlqFk2CvSC5cMdNkok\nSC9g\r\n=fR2o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCjDvR3/TwILLQaIPdFUk+HeZGT4yUzIFTswqLtOmCwgIgJuyt62gucp2jKUc5AOSAl9Sfv99YKID0AbjMPIX/P/U="}],"size":107960,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.16.7-alpha.0.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.16.7-alpha.0_1592332674784_0.4241317600680816"},"_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":1592332674898,"_cnpm_publish_time":1592332674898,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}