As far as I can tell, that’s still not possible. getEntityRecords() uses the REST API, but that doesn’t support meta queries by default. You can follow ticket #47194 if you’d like to keep tabs on the request to add support, or contribute to it.
For now, using rest_{posttype}_query seems to be the conventional way to achieve what you want. I’d recommend that over creating a custom endpoint.
Don’t forget that you’ll need to register the meta if you also want to see it in the response.
Related Posts:
- 404 in gutenberg autosave of a Custom Post Type with custom rest_namespace
- Editor API Endpoint or Data Store That Provides a List of Meta Fields for Post Types
- Is it possible to access the wp-admin from one instance while keeping WP_HOME pointing to the balancing url?
- Custom Endpoint API based on attribute gutenberg block
- Proxy External API request in PHP from Edit.js in Block Plugin
- Custom validation on publish/ update in Block Editor
- Unable to edit server side rendered block
- apiFetch() returns infinite requests
- Block editor – Too many requests for server host
- fetch more than 100 records in block editor API call
- Block editor not loading with rest api custom code
- WP Gutenberg – How to parse simple images?
- Get the email of the author of the currently being edited post in Gutenberg frontend
- Using Nested Blocks With Custom Query Block
- Are there ways to make the Gutenberg editor wider? And the HTML-block higher?
- Blocks: set a default value for a TextControl
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- Is there a list / reference for all current native WordPress blocks?
- Required (mandatory) Gutenberg block
- Add classname to Gutenberg block wrapper in the editor?
- Help with using getBlockIndex
- Best practices for CPT without using an editor [closed]
- Your site doesn’t include support for the block… after registering a block
- WordPress Rest API only returns content when posttype has editor capability
- Remove a component fill from a Block Editor panel
- How to wrap the Gutenberg editor in a custom React component?
- Proper way to reload or update getEntityRecords state
- Add a button to the toolbar of an existing Gutenberg block
- JSON File in Gutenberg
- Show date post published in Gutenberg component
- Adding an html wrapper to a custom Block Pattern
- How to add a class to the element in a custom Gutenberg block
- Specify exact parent child relationship between two blocks
- Using custom Entities to retrieve external data in the Block Editor
- How can I remove a button from the paragraph block toolbar?
- Align Group blocks left or right
- Unable to override MediaPlaceholder component
- Run the edit function of parent block when something changes in InnerBlocks
- do_blocks does not include its CSS
- Track Block Pattern Insertion Within the Block Editor
- block variations registration in PHP
- How to add screen reader text to links inserted in the block editor?
- Auto synchronize saving of custom block editor entities
- Store data from nested block of gutenberg
- Output content of post excerpt into Innerblocks within Gutenberg block
- How to add a link in a translation in gutenberg
- component does not render in block save
- Adding block programmatically to InnerBlocks
- Don’t expand “Most Used” accordion item when adding new block
- Block Controls not showing
- Gutenberg and FSE: How to exclude a block from full site editing
- Disable only one Gutenberg block programatically / coblock/maps not listed in blocks
- How to select block variation from BlockVariationPicker
- Editable button with RichText for Gutenberg custom block
- How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?
- Using wp_set_script_translations without manually registering the script
- How to remove the old “Custom CSS” from customizer after the theme has been migrated to Gutenberg FSE
- Why am I getting the error: Cannot update a component (`Unknown`) while rendering a different component (`Edit`)?
- Update number of posts when attribute changed
- Connect WordPress and react front-end
- Gutenberg editor auto remove wrapping tags like
- Setting fontSize within core/heading
- WordPress Dynamic Block with multiple checkboxes
- Embedded block editor in block editor
- Why does the paragraph block automatically add class?
- How can I block embeds and show an individual preview image per block?
- add arrow icon next to read more link on latest posts gutenberg block
- Create a trailing block with programatically generated Gutenberg columns
- Gutenberg link of internal page not showing
- How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?
- Gutenberg blocks not full width
- Custom Image Gutenberg Block With Caption
- How to make a block similar to another block
- Gutenberg: How to enqueue scripts conditionally in render_callback by checking for an attribute?
- How can I reintroduce autocompletion of Gutenberg components in Visual Code?
- Blocks – any way to have editor honor width percentages on child blocks?
- Using `esc_attr( get_block_wrapper_attributes() )`, results in `class=””wp-block-foo””`
- Debouncing Input value with block attributes
- Using the block theme in production
- When using the MediaPlaceholder component, will skipping blobUrl handling break something?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Add a new option to Social Link block
- Editing Inline fonts/typeface using the block editor
- What is the proper way of using React Hooks in Gutenberg on frontend?
- How to add Gutenberg editor on frontend page?
- WordPress gutenberg block serverside rendering html elements not showing up
- Gutenberg: change block Components Popover properties
- Unable to register a block using block.json in Block Editor
- $attributes not defined in block.json PHP template for ACF blocks
- add_editor_style now copying html styles to .editor-styles-wrapper?
- Is there a frontend equivalent for add_menu_page?
- How do I load styles for editing the admin interface for the block builder?
- Unable to edit custom post type, editor crashes. What to do?
- Gutenberg – Shadow settings not available (theme.json)
- Block Validation Error
- Unable to add blocks in wordpress posts
- How to get Gutenberg pattern sync status for custom pattern listings table?
- Setting “Open in New Tab” for Link Control to be checked by default
- Can I use Post Thumbnail with Block Bindings API