GFAPI::get_entries by custom entry meta [RESOLVED]

I’ve added a custom entry meta with gform_update_meta to an entry when it’s added and got some buttons and stuff to change that meta.

But when I’m using \GFAPI::get_entries like this:

\GFAPI::get_entries(
                    $form_id,
                    [ ['key' => 'my_custom_meta', 'value' => 'meta_value'] ],
                    ['key' => 'created_at', 'direction' => 'ASC']
                )

It doesn’t recognize my meta field.

And I just found out how to do this.

\GFAPI::get_entries(
                    $form_id,
                    [ 'field_filters' => [ ['key' => 'my_custom_meta', 'value' => 'meta_value'] ] ],
                    ['key' => 'created_at', 'direction' => 'ASC']
                )

Should’ve checked if it works this way. I just didn’t think the custom meta would be recognized as a field for the field_filters.

Thank you for the update.