MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / resolve_create_message

Function resolve_create_message

graphql-ml-serving/backend/mutations.py:10–17  ·  view source on GitHub ↗
(obj, info, content, client_id)

Source from the content-addressed store, hash-verified

8@mutation.field("createMessage")
9@convert_kwargs_to_snake_case
10async def resolve_create_message(obj, info, content, client_id):
11 try:
12 message = {"content": content, "client_id": client_id}
13 messages.append(message)
14 await queue.put(message)
15 return {"success": True, "message": message}
16 except Exception as error:
17 return {"success": False, "errors": [str(error)]}
18
19
20@mutation.field("createClient")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected