Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjroach committed Jan 17, 2025
1 parent 76c4049 commit 8307aa4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ You can alternatively download the introspection schema using the [`fetch-schema
</InlineFilter>

### Type Mapping AppSync Scalars
By default, [AppSync Scalars](https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html#graph-ql-aws-appsync-scalars) will default to the `Any` type.
By default, [AWS AppSync Scalars](https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html#graph-ql-aws-appsync-scalars) will default to the `Any` type.
You can map these scalars to more explicit types by editing the `apollo` block in your `app/build.gradle[.kts]` file. In the example below, we
are now mapping a few of our AppSync scalar types to `String` instead of `Any`. Additional improvements could
made writing [custom class adapters](https://www.apollographql.com/docs/kotlin/essentials/custom-scalars#define-class-mapping) to convert date/time scalars
made by writing [custom class adapters](https://www.apollographql.com/docs/kotlin/essentials/custom-scalars#define-class-mapping) to convert date/time scalars
into Kotlin date/time class types.

```kotlin
Expand Down

0 comments on commit 8307aa4

Please sign in to comment.