0.0.61 • Published 30 days ago

objy-connect v0.0.61

Weekly downloads
-
License
ISC
Repository
-
Last release
30 days ago

OBJY Connect

The mapper can be used as OBJY storage for interacting with OBJY platform. Just define your object wrappers and use the connect mapper for storage.

Documentation

Find the full documentation at objy.xyz.

Install

Browser

<script src="https://cdn.jsdelivr.net/npm/objy/dist/browser.js" />
<script src="https://cdn.jsdelivr.net/npm/objy-connect/index.js" />

Node

npm i objy objy-connect --save

Usage

With ES6:

import CONNECT from "objy-connect";

With CommonJS:

var CONNECT = require('objy-connect')

With <script src="...">, the CONNECT object will be available automatically.

let remote = new CONNECT(OBJY);
remote.connect({client: "myclient", url: "https://mydomain.com/api"})

OBJY.define({
	name: "object",
	pluralName: "objects",
	storage: new CONNECT(OBJY).connect({client: "myclient", url: "https://mydomain.com/api"}),
	templateFamily: null // important
});

// Login
remote.login({username: "user", password: "***"}, () => {
	OBJY.objects({}).get(data => {
		console.log('data:', data)
	}, err => {
		console.log('err:', err)
	})
})
0.0.61

30 days ago

0.0.60

2 months ago

0.0.59

2 months ago

0.0.53

8 months ago

0.0.54

7 months ago

0.0.55

7 months ago

0.0.56

6 months ago

0.0.57

6 months ago

0.0.58

5 months ago

0.0.51

8 months ago

0.0.52

8 months ago

0.0.50

8 months ago

0.0.49

8 months ago

0.0.41

10 months ago

0.0.42

10 months ago

0.0.43

10 months ago

0.0.44

10 months ago

0.0.45

10 months ago

0.0.46

10 months ago

0.0.47

10 months ago

0.0.3

10 months ago

0.0.4

10 months ago

0.0.2

1 year ago

0.0.1

1 year ago