Fork me on GitHub
#graphql
<
2021-09-08
>
hlship00:09:22

Currently, you need to start with SDL to create federation because one part of the federation responsibility is to be able to provide the SDL (the Apollo Gateway requests it, then parses and validates it). Anyway, if we could convert the EDN format to SDL that would be a viable path; I started down that way, but found I had too little time to pursue it and for our project, starting with SDL was necessary in any case.

husayn21:09:08

I have already started converting my edn schema to SDL, thanks for your response :thumbsup:

yenda05:09:56

might be a bit hacky as it requires running the service but I generate SDL like that:

apollo client:download-schema --endpoint= schema.graphql

hlship00:09:14

Others have mentioned attempting to generate reasonable SDL from the EDN format, or (better yet) from a compiled schema.