Change all field names to camelCase in GraphQL
This commit is contained in:
parent
8d67300d5f
commit
15e9c596c2
@ -373,7 +373,7 @@ impl Query {
|
||||
|
||||
#[graphql_object(context = Context)]
|
||||
impl Query {
|
||||
async fn get_user_id(context: &Context, username: String) -> FieldResult<ID> {
|
||||
async fn getUserID(context: &Context, username: String) -> FieldResult<ID> {
|
||||
sqlx::query(format!(
|
||||
r#"SELECT id FROM users WHERE user_name="{}""#,
|
||||
username
|
||||
@ -387,7 +387,7 @@ impl Query {
|
||||
Self::users_sqlx_result(context).await.map_err(FieldError::from)
|
||||
}
|
||||
|
||||
async fn user_preferences(context: &Context, id: ID) -> FieldResult<UserPreferences> {
|
||||
async fn userPreferences(context: &Context, id: ID) -> FieldResult<UserPreferences> {
|
||||
UserPreferences::try_get(&id, &context.db).await.map_err(FieldError::from)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user