alive false 면 loadpage chunk 표시하기 삭제된거라

노션처럼 이렇게 - 버튼에 neomorphism 적용해볼까 ㅎ
구현

관련 api 구현은 나중에 하고
들어올 수 있는 parameter 정하고 아니면 오류내기 - you can't change
- alive false create는 origin 있을 때만 가능
update origin to create
- alive patch 불가능
- throw invalid data
How to make mongoose fail if field is not in schema?
I want mongoose fails if I try to save document with field which is not in schema. I know about strict option ( https://mongoosejs.com/docs/guide.html#strict), but it does not cover my needs. strict: true removes fields without warning. And strict: false allows to save everything (which is not good in long terms).
https://stackoverflow.com/questions/53919123/how-to-make-mongoose-fail-if-field-is-not-in-schema
- Create
- Need
- type
- parent_table, parent_id should be in recursive input
- Available & not need
- properties - do not need
- index - do not need & not real
- Available only Server
history -inner
bin - inner
version - inner
alive - inner
content
- Patch
- Available & not need
- properties
- content
- type
- Available only Server
parent_table, parent_id
- badrequest 추가
Errors | FeathersJS
npm install @feathersjs/errors --save The @feathersjs/errors module contains a set of standard error classes used by all other Feathers modules. Here are a few ways that you can use them: The following error types, all of which are instances of FeathersError, are available: ProTip: All of the Feathers plugins will automatically emit the appropriate Feathers errors for you.
https://docs.feathersjs.com/api/errors.html#examples
- schema 이상한놈 throw
How to make mongoose fail if field is not in schema?
I want mongoose fails if I try to save document with field which is not in schema. I know about strict option ( https://mongoosejs.com/docs/guide.html#strict), but it does not cover my needs. strict: true removes fields without warning. And strict: false allows to save everything (which is not good in long terms).
https://stackoverflow.com/questions/53919123/how-to-make-mongoose-fail-if-field-is-not-in-schema
create, update 루프 검사
override 한 함수에서는 외부 호출과 내부호출의 차이점을 두기 위해 내부호출은 super만 쓰기
이걸로 위 문제 다 해결
- intersection
[Javascript] 교집합, 차집합, 배타적논리합
How to get the difference between two arrays in Javascript? Is there a way to return the difference between two arrays in JavaScript? For example: var a1 = ['a', 'b']; var a2 = ['a', 'b', 'c', 'd']; // need ["c", "d"] Any advice greatly appreciated. stackoverflow.com
https://88240.tistory.com/519
객체는 비교가 안되네 데이터가 같아도 메모리 주소가 달라서 그런가
stringfy는 에바고
id를 기준으로 해야할듯

- some 으로 include로 비교 안되는 object 비교 가능 아래처럼
How to Check If an Array Includes an Object in JavaScript
https://www.tutorialrepublic.com/faq/how-to-check-if-an-array-includes-an-object-in-javascript.php

문서정리 version 6

Seonglae Cho