LogoLogo
Frontend
  • Introduction
  • Getting started
  • About
  • Retrieving data
    • Introduction
    • Making a request
    • Property paths
    • Data providers
    • HTTP data provider
    • GraphQL data provider
    • Queries
    • GraphQL queries
    • Query Manager
    • Custom query classes
    • Bulk queries
  • Changing data
    • Introduction
    • Transforming and mapping data
    • Accessing properties
    • Transforming data
    • Available transformers
    • Mapping data
  • Advanced usage
    • Validation
    • Caching
    • Data History
    • Events
    • Testing API requests
Powered by GitBook
On this page
  • Array properties
  • Object properties

Was this helpful?

  1. Changing data

Accessing properties

PreviousTransforming and mapping dataNextTransforming data

Last updated 2 years ago

Was this helpful?

We use Symfony's component to help read and write data.

Array properties

To access array properties use the index notation, specifying array keys within square brackets.

Access $data['name']:

[name]

Access $data['people']['name']:

[people][name]

Access $data['people']['categories'][0]:

[people][categories][0]

Object properties

To access object properties use the dot notation, specifying object properties separated by a dot character.

Access $data->name:

name

Access $data->people->name:

people.name

Access $data->people->categories[0]:

people.name.categories[0]
PropertyAccess