MCPcopy Index your code
hub / github.com/RustyServerless/lambda-appsync / get_player

Function get_player

lambda-appsync/tests/make_appsync_no_batch.rs:57–59  ·  view source on GitHub ↗
(id: ID)

Source from the content-addressed store, hash-verified

55
56#[appsync_operation(query(player))]
57async fn get_player(id: ID) -> Result<Option<Player>, AppsyncError> {
58 Ok(Database.get(&id))
59}
60
61#[appsync_operation(mutation(createPlayer))]
62async fn create_player(name: String) -> Result<Player, AppsyncError> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected