Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to inform the client when init a doc that whether the doc exists or not? #397

Open
a0x opened this issue Oct 14, 2015 · 0 comments
Open

Comments

@a0x
Copy link

a0x commented Oct 14, 2015

In the Wiki I found that a Document is identified by collection and name, aka:

Connection.prototype.get = function(collection, name, data) {
  ...
  return doc;
};

I wrote like this to create a doc:

// Don't worry about `collection` since it is a fixed value, 
// `name` is sometimes different because I need it to be, 
// so that I can create different docs for users to cooperate with.
doc = connection.get(collection, name)

My question is how to inform the client(web browser) when initing a doc that whether the doc exists or not ?

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

No branches or pull requests

1 participant