Skip to content

Commit 051b5c8

Browse files
Copilothotlong
andcommitted
Remove debug logging and add JSON scalar documentation
- Remove console.log debug statement from TCK test - Add GraphQL documentation comment to JSON scalar type - Explain JSON scalar supports objects, arrays, and primitives Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 1810cfc commit 051b5c8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/protocols/graphql/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@ export class GraphQLPlugin implements RuntimePlugin {
664664

665665
let typeDefs = `#graphql
666666
# Custom scalars
667+
"""
668+
Represents arbitrary JSON values. Can be used for dynamic data structures.
669+
Supports objects, arrays, strings, numbers, booleans, and null.
670+
"""
667671
scalar JSON
668672
669673
# Common filter types

packages/protocols/graphql/src/tck.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class GraphQLEndpoint implements ProtocolEndpoint {
7474
const result = await this.graphqlRequest(mutation, { input: operation.data });
7575

7676
if (result.errors) {
77-
console.log('GraphQL create error:', JSON.stringify(result.errors, null, 2));
7877
return {
7978
success: false,
8079
error: {

0 commit comments

Comments
 (0)