Questions tagged [realm-functions]
4 questions
2
votes
1 answer
How do you find a document by id in a MongoDB Realm Function?
I'm writing a function in MongoDB Realm that I want to use as a custom resolver for GraphQL. Part of the function should get a specific document by its id. According to the documentation I can get access to the Atlas DB by using…

Jans Rautenbach
- 394
- 4
- 13
1
vote
2 answers
How to map over results in Realm custom resolver function find() response?
I am trying to create a function for my custom resolver that gets all documents in a collection and returns an amended payload with new data. Below is the code that im using to get one client and amend its data:
exports = (input) => {
const…

poca
- 3,630
- 3
- 13
- 19
0
votes
1 answer
@elastic/elasticsearch npm library not working in mongodb realm function
I am trying to integrate @elastic/elasticsearch npm library in mongodb realm function. To achieve that I addded @elastic/elasticsearch as dependency.
exports = async function(arg){
const { Client } = require('@elastic/elasticsearch');
try {
…

FaisalAhmed
- 3,469
- 7
- 46
- 76
0
votes
1 answer
Are there any Ways to replace values that contatin specific words in Power Query?
I'm having difficulties with using Power Query M-function.
The problems I'm having with is to make cells blank previously contains 'US Core shipping' on column 'promotion-ids'.
For example, there are 'US Core shipping A3JU1250912' 'US Core shipping…

Aiden Noh
- 1
- 1