lambda-appsync-proc 0.10.0

Procedural macros for the lambda-appsync type-safe AWS AppSync resolver framework
Documentation
1
2
3
4
5
6
7
8
use lambda_appsync::{appsync_lambda_main, appsync_operation, AppsyncError};

appsync_lambda_main!("../../../../schema.graphql");

#[appsync_operation(query(nonexistent))]
async fn invalid_operation() -> Result<String, AppsyncError> {
    Ok("test".to_string())
}