Skip to content

Conversation

@SkArchon
Copy link
Contributor

This PR documents the ability to get sha256Hash for custom modules in this pr wundergraph/cosmo#2300

ctx.Operation().Sha256Hash() // ctx core.RequestContext
```

However, the sha256Hash is not computed by default and is only computed if it is required by the router. If you are only using the sha256Hash in custom modules, you will need to explicitly force it to be computed. You can do this using the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when is it required by the router?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants