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
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.
implements tests below
QueryCondition
because don't export .QueryCondition
call at queryCollectionItems.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.
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.
以下のように、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
クライアント側からアクセス可能なプラグインがあると嬉しい
このプラグインは、Admin SDKを用いて実装されているため FirestoreのSecurty Ruleを無視してアクセスすることが可能になっています。
バックエンドで行う想定のプラグインだとは思いますが、クライアント APIを使用すれば、クライアントからSecurity Ruleで制御された安全なアクセスが可能になります。
Reference, Snapshotをチェーンして必要なデータを取得するのはAdmin SDKと同じように煩雑な操作があり毎回書くのは面倒と感じます。
https://firebase.google.com/docs/reference/js/firestore_?hl=ja
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.