Skip to content

Commit 82a0b72

Browse files
authored
entity.tokenStatus = "SecondOwner" (#60)
Change `entity.tokenStatus = "SecondOwner` to `entity.tokenStatus = "SecondOwner"`.
1 parent d2aff53 commit 82a0b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/en/developer/create-subgraph-hosted.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ enum TokenStatus {
240240
}
241241
```
242242

243-
Once the enum is defined in the schema, you can use the string representation of the enum value to set an enum field on an entity. For example, you can set the `tokenStatus` to `SecondOwner` by first defining your entity and subsequently setting the field with `entity.tokenStatus = "SecondOwner`. The example below demonstrates what the Token entity would look like with an enum field:
243+
Once the enum is defined in the schema, you can use the string representation of the enum value to set an enum field on an entity. For example, you can set the `tokenStatus` to `SecondOwner` by first defining your entity and subsequently setting the field with `entity.tokenStatus = "SecondOwner"`. The example below demonstrates what the Token entity would look like with an enum field:
244244

245245
More detail on writing enums can be found in the [GraphQL documentation](https://graphql.org/learn/schema/).
246246

0 commit comments

Comments
 (0)