{"name":"@apollo/federation","version":"0.13.0-alpha.0","description":"Apollo Federation Utilities","main":"dist/index.js","types":"dist/index.d.ts","keywords":[],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"SEE LICENSE IN LICENSE.md","engines":{"node":">=8"},"publishConfig":{"access":"public"},"dependencies":{"apollo-graphql":"^0.4.0","apollo-server-env":"^2.4.3","core-js":"^3.4.0","lodash.xorby":"^4.7.0"},"peerDependencies":{"graphql":"^14.0.2"},"gitHead":"2a3e2943056c2ff75a3f631e7c55a2d1cecab9b2","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.13.0-alpha.0","_nodeVersion":"10.18.1","_npmVersion":"lerna/3.20.2/node@v10.18.1+x64 (linux)","dist":{"integrity":"sha512-q0W775YJNugVMUiDdgSAw9qqYM7t6Zpz1juB+HSXidM3AymidFWDx6EDeoEP0/Mw0hh9dXPNIVoWQfHCz7ZpFg==","shasum":"04770243cfe40f2b5430b2b24bef2f43683b76df","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.13.0-alpha.0.tgz","fileCount":275,"unpackedSize":573305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePYONCRA9TVsSAnZWagAAuWgP/RO1eEKgKb9pghdb4BSZ\np7NmNS50vUPS5hcxpY4NWRIk1yXg/VADbYCFLyBEFLMtW0I0T8a1+oN9QthM\naUInYUCDfN/FmJBiSY4RCsCby0U9EwwBUq5zigFCZPn/Io46f/H0mEc1i70K\nnUQV00P2lx0hUx6x08N1um/kgCvL43eE6tmeTXCDG+eqOustZ/ycM32vxT8Z\n8HsObFZn50RY1byyG0Vk9t3Mh1zrH++JtMq6cwi6fEX9/idtfdX16ql5XQzm\nwI+LKDmhV3dnUTZJnSP5F2I/6IVTCPgP45H/WJKTrL9Xx1J2Rj5O1ev4Ly6e\nVO1a3zu/2gqlWd5vqcL4NnlSWSQ/sLuyv4TpGsROfLQLvt2pNI+zwd7yO6u0\nif65mmBYgHLn0Q/dL+CwcfrkmIqTwC8SvXL5RpMpnPeG9Se4xuCFjRDaNz4C\nI8IiSbTVHDvLNvduyGzHXzRgJYye6+tpylzORsQtYqqlmKZzkQjnTOFg6PgX\norE0YbnoP3NrovLkStdUKugDLvOWL5vPPYszPgFZy+FnWF6BBsip21as8Y5r\nqBwLrH9YzLQIWih89Dt0T22dnO+HiYZ2KtU9QhFk9E8FlUD++3iz8faRMkME\n/EwukcQXFE3ovzUhrX/DsLFsApyFUnRX5rNzSrvthUfKJk2/XjwBXhm2rOVK\nG/J/\r\n=lZPe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVuHpTQZcpnCpZRTF1gtJwzE2KqlzWtw9UVivDZLuGqAiBgKZPePrwly4niGCHfpGrRaKieB9ORcD2C2qcXL5I1jQ=="}],"size":102939,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.13.0-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.13.0-alpha.0_1581089676810_0.5800782056982294"},"_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":1581089676984,"_cnpm_publish_time":1581089676984,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}