Skip to content

Commit febd1f4

Browse files
author
James Baxley
committed
Change clientId to clientIdentifier
A point of clarity, client identifier is a better term for a value that can range from UUID, abritray strings, certs, and really anything else. Client Id was leading to confusion about the generation state and possible values (i.e. id's are typically a monotype)
1 parent 20276dc commit febd1f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/apollo/src/commands/queries/register.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export default class RegisterQueries extends Command {
4040
"Automatically remove @client and @connection directives and fields from operations"
4141
}),
4242
// XXX abstract for "clientFlags" and add to config
43-
clientId: flags.string({
43+
clientIdentifier: flags.string({
4444
description:
45-
"Id for the client which will match ids from client traces, will use clientName if not provided"
45+
"Identifier for the client which will match ids from client traces, will use clientName if not provided"
4646
}),
4747
clientName: flags.string({
4848
required: true,
@@ -111,7 +111,7 @@ export default class RegisterQueries extends Command {
111111
const variables = {
112112
clientIdentity: {
113113
clientName: flags.clientName,
114-
clientId: flags.clientId || flags.clientName,
114+
clientIdentifier: flags.clientIdentifier || flags.clientName,
115115
clientVersion: flags.clientVersion
116116
},
117117
serviceId: getIdFromKey(ctx.currentSchema.engineKey),

0 commit comments

Comments
 (0)