BE-Webdesign / wp-graphql

A GraphQL API for WordPress
GNU General Public License v3.0
19 stars 4 forks source link

Settings Types #127

Open BE-Webdesign opened 7 years ago

BE-Webdesign commented 7 years ago

Settings or options also need to be supported by WP GraphQL. They should have a type. It is impossible to know what the data coming out of the settings is because it is arbitrary, so a union type of primitives should be used. WP GraphQL also needs to check for serialized PHP strings, which are often stored in the database. Possibly the new register_settings() API can be used.