Skip to content

Conversation

@anmonteiro
Copy link
Contributor

No description provided.

@anmonteiro anmonteiro requested a review from sgrove June 30, 2022 00:01
@anmonteiro anmonteiro added enhancement New feature or request type: enhancement labels Jun 30, 2022
src/auth.ts Outdated
const parts = x.split(':');

if (parts.length !== 2) {
throw new Error('TODO parts');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this error be surfaced to the user?

src/auth.ts Outdated
return service.service;
}
} else {
return 'service identified by field ' + service.graphQLField;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just return service.graphQLField here or sentence cased service.graphQLField if you want to write a sentenceCase function.

The end user that's looking at this may not be aware that there is any graphql thing anywhere.

Copy link

@dwwoelfel dwwoelfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@anmonteiro anmonteiro merged commit 90fef1f into main Jul 1, 2022
@anmonteiro anmonteiro deleted the anmonteiro/graphql-field-change branch July 1, 2022 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request type: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants