googleapis / googleapis/google-cloud-php

Add ability to exclude list values from indexes

Open
#3,638 10 comments 0 reactions 0 assignees View on GitHub
api: datastore type: feature request
Dominant language
PHP
Stars
1.2k
Forks
463
Avg merge
2d 1h
Merged PRs (30d)
145

Description

Hi,

I have already asked this in the issue #3619 , but as I need an answer that I cannot find elsewhere, I open a new issue. Sorry in advance for asking this here again.

How is that supposed to be done to prevent this error `Exclude from indexes cannot be set on a list value`? Am I supposed to do the same thing than embedded entities? Something like

```
$ds = new DatastoreClient;

$data = [1, 2, 3];
$array = $ds->entity(null, $data, [
'excludeFromIndexes' => array_keys($data),
]);
```
I have tried this, and it doesn't work, so I'm wondering if there is any solution to exclude an entire list from indexes.

Thanks in advance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.