Git Product home page Git Product logo

Comments (1)

Simran-B avatar Simran-B commented on September 26, 2024

Could create a UDF using a JS library like one of the following (assuming they don't use Promises or similar):

But if you want to move the documents to different collections then AQL can be a bit of a pain and it might be easier to use Node.js + arangojs to run a one-off language detection.

We also thought about using AQL Analyzers (one per language) and only let the comments in one language through, but AQL Analyzers cannot be used in combination with UDFs and they only have access to the value of the field they access, not the entire document (i.e. cannot base the decision of whether to include a comment or not on a separate language field). The only workaround that came to mind was to have a single comment field with an array, where one element is the language and the other the comment text. However, we would like to show that Views can link multiple collections, and this is a good opportunit.

from arangobnb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.