Graphql and REST API return wrong value

Created on 28 March 2023, over 1 year ago

We use the grapqhl module and also a custom REST API to decouple our site, and the "moderation_state" field for the workflow we create always returns "published"

	"moderation_state": [
		{
			"value": "published"
		}
	],

Any ideas on how we can fix this issue and have the correct value returned via API and Graphql?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mcanada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024