MCPcopy Create free account
hub / github.com/RustyServerless/lambda-appsync / get_player

Function get_player

lambda-appsync/tests/lambda_integration.rs:77–79  ·  view source on GitHub ↗
(id: ID)

Source from the content-addressed store, hash-verified

75
76#[appsync_operation(query(player))]
77async fn get_player(id: ID) -> Result<Option<Player>, AppsyncError> {
78 Ok(Database.get(&id))
79}
80
81#[appsync_operation(mutation(createPlayer))]
82async fn create_player(name: String) -> Result<Player, AppsyncError> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected