requests http
This commit is contained in:
7
IOT/src/data/getOneData.js
Normal file
7
IOT/src/data/getOneData.js
Normal file
@ -0,0 +1,7 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pb = new PocketBase('https://iot.epi.cb85.software');
|
||||
|
||||
const record = await pb.collection('data').getOne('RECORD_ID', {
|
||||
expand: 'relField1,relField2.subRelField',
|
||||
});
|
7
IOT/src/users/getOneUser.js
Normal file
7
IOT/src/users/getOneUser.js
Normal file
@ -0,0 +1,7 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pb = new PocketBase('https://iot.epi.cb85.software');
|
||||
|
||||
const record = await pb.collection('users').getOne('RECORD_ID', {
|
||||
expand: 'relField1,relField2.subRelField',
|
||||
});
|
Reference in New Issue
Block a user