We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339f7d6 commit 2829a83Copy full SHA for 2829a83
packages/optimizely-cms-sdk/src/graph/index.ts
@@ -153,7 +153,7 @@ function removeTypePrefix(obj: any): any {
153
if (typeof obj === 'object' && obj !== null) {
154
const obj2: Record<string, any> = {};
155
if ('__typename' in obj) {
156
- // Do something special with the object
+ // Object has a GraphQL type, check for and remove aliased field prefixes
157
const prefix = obj.__typename + '__';
158
159
// Copy all properties, remove the typename from prefix
0 commit comments