src/Model.js
function getByIdQuery(modelInstance) {
    const modelClass = modelInstance.getClass();
    const { idAttribute, modelName } = modelClass;

    return {
        table: modelName,
        clauses: [
            {
                type: FILTER,
                payload: {
                    [idAttribute]: modelInstance.getId(),
                },
            },
        ],
    };
}
function getByIdQuery(modelInstance) {
    const modelClass = modelInstance.getClass();
    const { idAttribute, modelName } = modelClass;

    return {
        table: modelName,
        clauses: [
            {
                type: FILTER,
                payload: {
                    [idAttribute]: modelInstance.getId(),
                },
            },
        ],
    };
}
function getByIdQuery ( modelInstance ) { const modelClass = modelInstance . getClass ( ) ; const { idAttribute , modelName } = modelClass ; return { table : modelName , clauses : [ { type : FILTER , payload : { [ idAttribute ] : modelInstance . getId ( ) , } , } , ] , } ; }
Generates a query specification to get the instance's
corresponding table row using its primary key.

@private
@returns {Object}
Generates a query specification to get the instance s corresponding table row using its primary key .