Skip to content

Commit 95fe02f

Browse files
committed
formatting
1 parent ccc569a commit 95fe02f

File tree

1 file changed

+1
-5
lines changed
  • src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions

1 file changed

+1
-5
lines changed

src/pages/[platform]/build-a-backend/data/aws-appsync-apollo-extensions/index.mdx

+1-5
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,7 @@ You can alternatively download the introspection schema using the [`fetch-schema
322322
4. Add this file to your project as directed by [Apollo documentation](https://www.apollographql.com/docs/kotlin/advanced/plugin-recipes#specifying-the-schema-location)
323323

324324
### Type Mapping AppSync Scalars
325-
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.
326-
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
327-
are now mapping a few of our AppSync scalar types to `String` instead of `Any`. Additional improvements could
328-
made by writing [custom class adapters](https://www.apollographql.com/docs/kotlin/essentials/custom-scalars#define-class-mapping) to convert date/time scalars
329-
into Kotlin date/time class types.
325+
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 be 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.
330326

331327
```kotlin
332328
apollo {

0 commit comments

Comments
 (0)