cli-ext: fix sdl formatting

closes https://github.com/hasura/graphql-engine/issues/7296

https://github.com/hasura/graphql-engine-mono/pull/2012

Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 41383e1f88c709c6cae4059a1b4fb8f2a58259e6
This commit is contained in:
Kali Vara Purushotham Santhati 2021-08-06 10:30:12 +05:30 committed by hasura-bot
parent f6987ca4ff
commit 0341037aeb
2 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@
## Next release ## Next release
(Add entries below in the order of server, console, cli, docs, others) (Add entries below in the order of server, console, cli, docs, others)
- console: fix untracked foreign-key relationships suggestion across schemas
- server: fix for incorrect `__typename` value in nested remote joins with a customized remote schema - server: fix for incorrect `__typename` value in nested remote joins with a customized remote schema
- console: fix untracked foreign-key relationships suggestion across schemas
- cli: fix SDL formatting in `actions.graphql`(#7296)
## v2.0.5 ## v2.0.5

View File

@ -227,7 +227,7 @@ const getArgumentsSdl = args => {
const getFieldsSdl = fields => { const getFieldsSdl = fields => {
const fieldsSdl = fields.map(f => { const fieldsSdl = fields.map(f => {
const argSdl = f.arguments ? getArgumentsSdl(f.arguments) : ''; const argSdl = f.arguments ? getArgumentsSdl(f.arguments) : '';
return ` ${getEntityDescriptionSdl(f)}${f.name} ${argSdl}: ${f.type}`; return ` ${getEntityDescriptionSdl(f)}${f.name}${argSdl}: ${f.type}`;
}); });
return fieldsSdl.join('\n'); return fieldsSdl.join('\n');
}; };