| 1002 | } |
| 1003 | |
| 1004 | static 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 | |
| 1014 | bool cbm_service_pattern_graphql_operation(const char *doc, const char **op_type, char *name_buf, |
| 1015 | size_t name_sz) { |
no outgoing calls
no test coverage detected