elsoul / skeet-firestore Goto Github PK
View Code? Open in Web Editor NEW🛠 Skeet Framework Plugin - Firestore🔥
Home Page: https://skeet.dev
License: Apache License 2.0
🛠 Skeet Framework Plugin - Firestore🔥
Home Page: https://skeet.dev
License: Apache License 2.0
QueryCondition
because don't export .QueryCondition
call at queryCollectionItems.クライアント側からアクセス可能なプラグインがあると嬉しい
このプラグインは、Admin SDKを用いて実装されているため FirestoreのSecurty Ruleを無視してアクセスすることが可能になっています。
バックエンドで行う想定のプラグインだとは思いますが、クライアント APIを使用すれば、クライアントからSecurity Ruleで制御された安全なアクセスが可能になります。
Reference, Snapshotをチェーンして必要なデータを取得するのはAdmin SDKと同じように煩雑な操作があり毎回書くのは面倒と感じます。
https://firebase.google.com/docs/reference/js/firestore_?hl=ja
I want to prevent the coding style from being different in the developer's environment when committing the source code.
I committed without formatting in #18, Reviewer had to format it again.
implements tests below
以下のように、documentのhtmlで改行なしに1行で書いているのは意図してのことでしょうか?
今のprettierの設定だと、強制的に改行してしまうので、この書き方を保つのならばformatさせないように .prettierignore に含めたほうが良いと思います。
.next
out
dist
build
src/__generated__
src/schema.graphql
"lint-staged": {
"*.{ts,css,md}": "prettier --write"
}
READMEにある advancedConditionsの条件で ageとnameの複合条件の例示がありますが
テストの中のコメントと一致していないと思います。
Line 160 in fdc8338
skeet-firestore/tests/firestore_spec.test.ts
Line 194 in fdc8338
https://firebase.google.com/docs/firestore/manage-data/add-data?hl=ja#server_timestamp
Maybe now the records from the same function have the same timestamp (function-triggered time), and it may cause some problems.
For example addStreamUserChatRoomMessage
. If the record have the same timestamp, we can't show the messages as the correct order.
I think the server timestamp can make the timestamp for saved time but not function-triggered time.
Only skeet-solana-mobile template web front end has this issue.
elsoul/skeet-solana-mobile-stack#47
skeet functions + add method from @skeet-framework/firestore didn't work suddenly.
Before it worked well. (This repository didn't updated for this moment thought)
Also asking for Firebase support team.
> Error: Error adding document: Error: Value for argument "data" is not a valid Firestore document. Couldn't serialize object of type "rme" (found in field "createdAt"). Firestore doesn't support JavaScript objects with custom prototypes (i.e. objects that were created via the "new" operator).
> at Poa (/Users/ktm/dev/skeet-solana-mobile-stack/functions/skeet/dist/index.js:1324:711)
> at /Users/ktm/dev/skeet-solana-mobile-stack/functions/skeet/dist/index.js:1353:1058
> at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
> at async runFunction (/Users/ktm/dev/skeet-solana-mobile-stack/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:506:9)
> at async runHTTPS (/Users/ktm/dev/skeet-solana-mobile-stack/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:531:5)
> at async /Users/ktm/dev/skeet-solana-mobile-stack/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime.js:694:21
ESLint: 8.27.0
ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin".
(The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/workspaces/skeet-dev/skeet-firestore".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install @typescript-eslint/eslint-plugin@latest --save-dev
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in ".eslintrc.json".
If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.