Skip to main content
Answer

Enumeration support in FDM?

  • January 26, 2023
  • 3 replies
  • 119 views

Is there a plan to support enumeration (or any way to restrict value of string properties) in the future?

Enumerations are described here: https://graphql.org/learn/schema/, but seems like its currently not supported:

 

Best answer by Anders Hafreager

Hi,

Thanks for reaching out. Enum support is on the roadmap, with support from the underlying implementation. Will keep this thread updated on the topic. 

3 replies

Anders Hafreager
Practitioner

Hi,

Thanks for reaching out. Enum support is on the roadmap, with support from the underlying implementation. Will keep this thread updated on the topic. 


Forum|alt.badge.img

hello - any news on the enumerations in CDF? I couldn’t find any mention of that in CDF documentation or these communities.  Is there anything in CDF that helps to support enumerations handling?


  • Seasoned
  • November 17, 2025

hello - any news on the enumerations in CDF? I couldn’t find any mention of that in CDF documentation or these communities.  Is there anything in CDF that helps to support enumerations handling?

I’m looking for the same, the only mention I found in docs is here:
https://docs.cognite.com/cdf/dm/dm_guides/dm_best_practices_ai_search/#specify-enum-values

Edit: I realized CogniteTimeSeries within core data model uses Enum for the “type”-property, you can check it out by running the following.

client = CogniteClient()

cognite_ts = client.data_modeling.containers.retrieve(
ContainerId(space="cdf_cdm", external_id="CogniteTimeSeries")
)

cognite_ts.properties.get("type")