Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
10 months ago

Possible to reference a single field from a model?

Originally posted by user mr_pablo to the Stoplight Community on 10/27/2022 at 11:41 ET.

I am writing models for some data we want to store.

I have a model that contains a field, an array of strings, that is used to store UUIDs from another model.

Is there a way to reference just the UUID field from that other model? The only thing I can see is to reference the whole model, which I don't want to do.

  • Skinghar (Staff) [11/02/2022 - 11:22 ET]

    Hello mr_pablo, you can create it's own model - and reference it form the old model and the new model.

  • Stoplight's avatar
    Stoplight
    Community Manager

    Skinghar (Staff) [11/02/2022 - 11:22 ET]

    Hello mr_pablo, you can create it's own model - and reference it form the old model and the new model.