Coder Social home page Coder Social logo

docs-node's Introduction

MongoDB Node Driver Documentation

This repository contains documentation for the MongoDB Node Driver.

File JIRA Tickets

Please file issue reports or requests at the Documentation Jira Project.

Licenses

All documentation is available under the terms of a Creative Commons License.

The MongoDB Documentation Project is governed by the terms of the MongoDB Contributor Agreement.

-- The MongoDB Docs Team

docs-node's People

Contributors

ajhuh-mdb avatar biniona-mongodb avatar caitlindavey avatar dacharyc avatar dbirtolo-mdb avatar durran avatar ianf-mongodb avatar jordan-smith721 avatar kyuan-mongodb avatar mongokart avatar nathan-contino-mongo avatar nickldp avatar norareidy avatar rachel-mack avatar rosald avatar rustagir avatar sarahemlin avatar sarahsimpers avatar schmalliso avatar skerschb avatar terakilobyte avatar zach-carr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs-node's Issues

Docs lack expamples, can't find solutions easily, not beginner friendly

How would i know what sharding is, what application is, what replication is?
are you writing docs for yourself or for someone else who'll come to learn the technology?
it doesn't look like it's written for someone who's landed on the docs to learn it on his own.
there's only one way to learn it and to become familiar with mongodb is by going through the docs entirely at once.
Screenshot_6

i'm tryna search my collection whenever user types an input and return whatever matches that specific part of the string (let say i wanna get all the users whose name starts with 'a', i can't find anything working, only a word matches and returns the result, when searched using a character string, i get nothing.

getProfiles: async (
    _: any,
    { search, skip }: { search: string; skip: number },
    { users }: any
  ) => {
    await users.createIndex({name: 'text', email: 'text', state: 'text', country: 'text', _id: 'text'})
    return await users.find({$text: {$search: `/${search}/`}}).skip(skip).limit(15).toArray();
  }

i'm using nodejs-driver:

"mongodb": "^4.5.0",
"node": "18.2.0"

Googling for "mongodb node driver insertone" will bring the user to a 404 page.

This issue originates with what Google is indexing for the top result, but probably because something got moved, the first result when I (and maybe most people) search "mongodb node driver insertone" links to https://docs.mongodb.com/drivers/node/usage-examples/insertOne/.

The actual article the user is looking for is https://docs.mongodb.com/drivers/node/current/usage-examples/insertOne/. The difference here being current in the path.

- https://docs.mongodb.com/drivers/node/usage-examples/insertOne/
+ https://docs.mongodb.com/drivers/node/current/usage-examples/insertOne/

It may be worthwhile to add a redirect in your docs code from https://docs.mongodb.com/drivers/node/* to https://docs.mongodb.com/drivers/node/current/*.

image
image

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.