Commit f019c05
committed
Pass the
Start passing the `operationName` to `defaultOperationRegistrySignature`.
apollographql/apollo-tooling#1115
If `operationName` is `null`, then the operation is anonymous. However,
it's not possible to register anonymous operations from the `apollo` CLI.
We could fail early, however, we still want to abide by the desires of
`forbidUnregisteredOperations`, so we'll allow this hash be generated
anyway. The hash cannot be in the manifest, so this would be okay and allow
this code to remain less conditional-y, eventually forbidding the operation
when the has is not found and `forbidUnregisteredOperations` is on.operationName to defaultOperationRegistrySignature.1 parent 6adc350 commit f019c05
1 file changed
Lines changed: 15 additions & 1 deletion
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
109 | 123 | | |
110 | 124 | | |
111 | 125 | | |
| |||
0 commit comments