Skip to content

Running $text Queries in Cloud Code #3374

Closed

Description

@aaronbannin

I'd like to run a $text query from Cloud Code. Everything is set up on the Mongo side, but I'm curious about the best way to run the query. Is there a way to access the existing Mongo connection to run a custom query?

Activity

  1. flovilmart commented on Jan 14, 2017

    @flovilmart
    Contributor

    There is no way to access the parse-server connection from cloud code. However, cloud code is now just a node required file, loaded as any other module. You can create a connection of your own an run any direct query on the mongodb dataset. The results however won't be in Parse REST format.

  2. aaronbannin commented on Jan 15, 2017

    @aaronbannin
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions