Pleex
Search…
introduction
quick start
Installation
API
API Reference
Collection
Schema
Insert
getAll
getItem
getItems
removeItem
clearCollection
insertMultiple
Contributing
How to contribute
Powered By
GitBook
Collection
Collection can initial your collection and start calling methods that returned by this api.
collection("name of the collection")
How to use:
1
const
my_collection
=
Pleex
.
collection
(
'myCollection'
);
2
// my_collection can be any name you want
3
// myCollection can be any name you want
Copied!
Arguments:
parameter
required
type
Name of collection
yes
string
Example:
1
import
React
,{
useEffect
}
from
'react'
;
2
import
{
Text
}
from
'react-native'
;
3
import
{
Pleex
}
from
'pleex'
;
4
5
const
App
=
()
=>
{
6
7
useEffect
(()
=>
{
8
// Initial Pleex here
9
const
my_collection
=
Pleex
.
collection
(
'myCollection'
);
10
},
[]);
11
12
return
(
13
<
>
14
<
Text
>
Hello World
</
Text
>
15
</
>
16
);
17
18
};
19
20
export
default
App
;
Copied!
Previous
API Reference
Next
Schema
Last modified
2yr ago
Copy link
Contents
collection("name of the collection")
How to use:
Arguments:
Example: