Skip to content

Conversation

@Josipmrden
Copy link
Contributor

Description

Add documentation for 2 new functions -> keys and values which will return map keys or map values when map is returned as an argument. Also if argument is of type node or relationship, it will either return property ids or property values

Pull request type

Please check what kind of PR this is:

  • Fix or improvement of an existing page

Related PRs and issues

PR this doc page is related to:
(especially necessary if the PR is related to a release)

Checklist:

  • Check all content with Grammarly
  • Perform a self-review of my code
  • Make corresponding changes to the rest of the documentation (consult with the DX team)
  • The build passes locally
  • My changes generate no new warnings or errors
  • Add a corresponding label
  • If release-related, add a product and version label
  • If release-related, add release note on product PR

@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2023 0:02am

Comment on lines 78 to 79
| `keys` | `keys(map[Any, Any]|Node|Relationship)` | Returns all keys of the map. In the case of node or a relationship, returns property keys. |
| `values` | `values(map[Any, Any]|Node|Relationship)` | Returns all values of the map. In the case of node or a relationship, returns property values. |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `keys` | `keys(map[Any, Any]|Node|Relationship)` | Returns all keys of the map. In the case of node or a relationship, returns property keys. |
| `values` | `values(map[Any, Any]|Node|Relationship)` | Returns all values of the map. In the case of node or a relationship, returns property values. |
| `keys` | `keys(map[Any, Any]|Node|Relationship)` | Returns all keys of a map. In the case of a node or a relationship, returns property keys. |
| `values` | `values(map[Any, Any]|Node|Relationship)` | Returns all values of a map. In the case of a node or a relationship, returns property values. |

@vpavicic vpavicic merged commit 713f3ff into memgraph-2-12 Oct 26, 2023
vpavicic added a commit that referenced this pull request Nov 2, 2023
* [memgraph-2-12 < api-path-pop] Add docs for path pop in API (#184)

* api path pop docs

* add space

* [memgraph-2.12 < Storage mode flag ] Add storage mode flag for starting Memgraph  (#238)

* Add storage mode flag

* adding info to more places

* flag-non-empty

---------

Co-authored-by: Andi Skrgat <andi8647@gmail.com>

* storage mode property (#258)

* rn

* memory-allocation

* rn-1367

* rn+ddl

* deltas

* 1129-moved-to-2-11

* changelog

* [memgraph-2-12 < E-MAGE-node] Write docs for node-in-out-degree (#264)

* Write docs for node-in-out-degree

* Apply suggestions from code review

---------

Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>

* Docs for map KeyExists Cpp api (#269)

* rn

* [memgraph-2-12 <] Write docs for refactor.rename_type_property (#271)

* Write docs for refactor.rename_type_property

* Apply suggestions from code review

---------

Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>

* rename type docs (#273)

* rn

* [memgraph-2.12 < E-mage-path-ivan] Add docs for path (#274)

* slice, elements and combine docs

* add changes

* Apply suggestions from code review

---------

Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>

* [memgraph-2-12<] Update replication docs (#279)

* update replcation docs

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>

* Cartesian product (#282)

* rn

* fixes

* fetch

* [memgraph-2-12] Write docs for merge module (#277)

* Write docs for merge module

* Update merge.mdx

Fix small mistake

* merge relationship docs

* remove line

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: imilinovic <44698587+imilinovic@users.noreply.github.com>
Co-authored-by: imilinovic <ivan.milinovic123@gmail.com>
Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>

* rn

* [memgraph-2.12 < T] Improve global and query memory limit (#284)

* add virtual memory note, add note on query memory control

* Apply suggestions from code review

* reorder

---------

Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>
Co-authored-by: Vlasta <vlasta.pavicic@memgraph.io>

* Add function docs (#285)

* Add function docs

* Add fix

* rn

* rn

* [memgraph-2-12<] Move QM from mage  (#287)

* remove

* remove

* [memgraph-2-12 < ] Write docs for algo query module (#283)

* Write docs for algo

* all simple paths

* Apply suggestions from code review

* impr

* Apply suggestions from code review

---------

Co-authored-by: imilinovic <44698587+imilinovic@users.noreply.github.com>
Co-authored-by: imilinovic <ivan.milinovic123@gmail.com>
Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>
Co-authored-by: Vlasta <vlasta.pavicic@memgraph.io>

* Apply suggestions from code review

* algo-rn

* rn

* [memgraph-2.12 < E-add-refactor] (#288)

* Write docs for refactor.rename_type_property

* Apply suggestions from code review

* refactor docs

* Apply suggestions from code review

* impr

* b-s

* impr2

* pr changes

---------

Co-authored-by: Matija <pintamato@gmail.com>
Co-authored-by: Vlasta <95473291+vpavicic@users.noreply.github.com>
Co-authored-by: Vlasta <vlasta.pavicic@memgraph.io>

* rn

* Add retry notes to supported clients. (#291)

* Add context for transient errors.

* Update grammar.

* client-libraries

* rn

---------

Co-authored-by: imilinovic <44698587+imilinovic@users.noreply.github.com>
Co-authored-by: Andi Skrgat <andi8647@gmail.com>
Co-authored-by: Matija Pintarić <99442742+mpintaric55334@users.noreply.github.com>
Co-authored-by: DavIvek <ivekovicdavid22@gmail.com>
Co-authored-by: Josipmrden <josip.mrden@memgraph.io>
Co-authored-by: imilinovic <ivan.milinovic123@gmail.com>
Co-authored-by: Antonio Filipovic <61245998+antoniofilipovic@users.noreply.github.com>
Co-authored-by: Matija <pintamato@gmail.com>
Co-authored-by: Ante Javor <ante.javor@memgraph.io>
@kgolubic kgolubic deleted the values-and-keys-on-maps branch January 23, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants