{"name":"@apollo/federation","version":"0.29.1-alpha.0","description":"Apollo Federation Utilities","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/federation.git","directory":"federation-js/"},"keywords":["graphql","federation","apollo"],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"MIT","engines":{"node":">=12.13.0 <17.0"},"publishConfig":{"access":"public"},"dependencies":{"apollo-graphql":"^0.9.3","apollo-server-types":"^3.0.2","lodash.xorby":"^4.7.0"},"peerDependencies":{"graphql":"^15.4.0"},"gitHead":"3cbefa4c0c0a7e629865e56741efa3d6a9afcc08","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 { buildSubgraphSchema } = 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: buildSubgraphSchema([{ typeDefs, resolvers }])\n});\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/federation/issues"},"homepage":"https://github.com/apollographql/federation#readme","_id":"@apollo/federation@0.29.1-alpha.0","_nodeVersion":"12.22.5","_npmVersion":"lerna/4.0.0/node@v12.22.5+x64 (linux)","dist":{"integrity":"sha512-NjzzILlZM6gq0ryIJ5MWrRfpYd929l2meHZWxn0AkZWi281HIlNp/fsvak0S2ozVm9xiLJggnvj2lGArXa1ViA==","shasum":"ce2a49c08a1682072c08146dbaffbb8622942639","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.29.1-alpha.0.tgz","fileCount":312,"unpackedSize":844548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJAaeCRA9TVsSAnZWagAAK+0P/2nd8uYepfRGsg1AGvW8\nJ50VqhJXE7mRYRc1OEPpCcavwitx/hX5ELgCYKBOB6IDk1kBg9UHGMsubX2A\nPf3Q9P5+ndjNZ4xRphTN8hBATXRkybP6CCx6e3tOP1uavS2AtHQG63w1RUZB\nbtm+8lWvlV6NLUBvmkC2Z275jLZY+7xGqh2f1wz1BKExSeT+X/bmuZjH6+SP\nkZwJahskDZnkOI2OXcRW63bYqrvKHBHSc5OdaQs0yqB2oNMJTO+fCa/yJiyx\nCMKJJMRX+fiXeAH9eoBWiIn7+zI4ERs9KdXdPZVYxgBeXRKp3PE94zJ+paox\nEl/xY5Jyxyr6hQwY9EFpYjjQaAAM8ANHpoMLuL96UupQsBYQL0LAokF+aWl3\nBl1QnJfb6zfWxN+ralYIJ514Eggb4c5yta6rso3K5ucikFEVm2Ayth8DNMbV\nQgSP0hDHVOqQ+lexEBJe5fU3JghXjtUu/ryIikotO+NYEAcLjcqFgCcmvuIx\n3Wac6momtCiaEiue6Ss3e2MpzuKratfKasg4mTWa3BqQq54XESaP/GM+GdHD\nhlQOey6xvrkC/9c/8Ei9OsdPgL/JJU4M8vbu9yxNwri9I09pLycfsWZW1A7O\nPM1nVXpch/ksOSJ8+2mCHtgTLAOqeWDWAHpHD/VQmswFGgMGLcvyus0n6bRu\nY2NS\r\n=Efmh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgjRNiOfrTAyaVWSExpDUjNWKPqQ8Yjwty3zV7jIjT/AiBQ24TTi5nEgGvV/nG3klsat2CMNqRDRl1f7xI10FPvXw=="}],"size":149671,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.29.1-alpha.0.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/federation_0.29.1-alpha.0_1629750941932_0.183435729621525"},"_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":1629750942205,"_cnpm_publish_time":1629750942205,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}