MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / gql_operation_keyword

Function gql_operation_keyword

internal/cbm/service_patterns.c:1004–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004static const char *gql_operation_keyword(const char *tok, size_t len) {
1005 static const char *const kws[] = {"query", "mutation", "subscription", NULL};
1006 for (int i = 0; kws[i]; i++) {
1007 if (strlen(kws[i]) == len && strncmp(tok, kws[i], len) == 0) {
1008 return kws[i];
1009 }
1010 }
1011 return NULL;
1012}
1013
1014bool cbm_service_pattern_graphql_operation(const char *doc, const char **op_type, char *name_buf,
1015 size_t name_sz) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected